Turn browser into a console for Python using FastHTML (in 34 lines).
Setup
pip install python-fasthtml
git clone https://github.com/iamaziz/fh_pyconsole.git
cd fh_pyconsole
Run
python main.py
Open browser and navigate to http://localhost:5001
demo.mov
A live demo is available here and here.
Under the hood,
exec()
is used to execute Python code.