Python that runs on your machine, not ours
This page loads Pyodide, the CPython interpreter compiled to WebAssembly. The first run downloads the runtime (about 10 MB, then cached); after that, scripts start instantly and keep working offline.
The full standard library is available. Importing a supported package such as numpy or pandas fetches it automatically on first use.
Hello world
name = "world"
print(f"Hello, {name}!")
Frequently asked questions
How do I read input()?
Open the stdin box under the editor and type one value per line. Each call to input() reads the next line.
Can I install pip packages?
Pure-Python wheels and the packages bundled with Pyodide (numpy, pandas, scipy, matplotlib and many more) load on import. Packages that need native code not built for WebAssembly will not work.
Is there a time limit?
Scripts are stopped after 20 seconds of execution so an accidental infinite loop cannot freeze your tab. Runtime download time does not count.
Related tools
- Pine compilerCheck, run and chart v4 · v5 · v6 scripts in your browser — nothing to install, nothing uploaded.
- Python + stdininput() reads from the stdin box — one value per line.
- Python data sandboxNumPy and pandas, loaded on demand, running locally.
- JavaScriptSandboxed Web Worker with top-level await.
- TypeScriptTranspiled by the real TypeScript compiler, then executed.
- LuaLua 5.3 on the Fengari VM.
- SQL (SQLite)A real SQLite engine in WebAssembly — fresh database every run.
- HTML / CSS / JSLive preview in a sandboxed frame.