A minimal Python interpreter that runs in the browser using Pyodide, with a terminal-style output panel.
https://davidlxu.github.io/LX_Python_Interpreter/
- Run Python code directly in the browser
- Terminal-style output for
print()and errors - Built-in toy examples (FizzBuzz, recursion, classes, stdlib, traceback demo)
- No backend required (static site)
Run a local static server:
cd /home/lixin/LX_Python_Env
python3 -m http.server 8000Open:
http://localhost:8000/index.html
This repo includes a GitHub Actions workflow for GitHub Pages:
.github/workflows/deploy-pages.yml.nojekyll
To enable deployment:
- Open your GitHub repository settings.
- Go to
Pages. - Set the source to
GitHub Actions. - Push to
main.
- HTML/CSS/JavaScript
- Pyodide (Python in WebAssembly)
- This is a minimal environment focused on stdout/stderr output.
- Interactive
input()is not implemented yet.
