File size: 708 Bytes
e66a258
 
 
 
 
 
7acbce5
e66a258
 
 
 
b8b9cbf
 
 
e66a258
b8b9cbf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7acbce5
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
title: PyConsole
emoji: ๐Ÿ
colorFrom: green
colorTo: green
sdk: docker
app_file: main.py
pinned: false
---


# PyConsole

Turn browser into a console for Python using [FastHTML](https://github.com/answerdotai/fasthtml) (in 34 lines).

# Usage

```shell
pip install python-fasthtml
git clone https://github.com/iamaziz/fh_pyconsole.git
cd fh_pyconsole
```

```python
python app.py
```

Open browser and navigate to `http://localhost:5001`

# Demo

> `<TODO> add screenshare video recording`

<br>

## Disclaimer โš ๏ธ

> Under the hood, `exec()` is used to execute Python code.


## Deployment to HF Space

- Using [fasthtml-hf](https://github.com/AnswerDotAI/fasthtml-hf?tab=readme-ov-file#quickstart)