01 · Pyodide WebAssembly
Full CPython runtime compiled to WebAssembly running directly in your browser tab.
Standard library and micropip wheel installation supported.
02 · Web Worker Isolation
Code executes inside an isolated background Web Worker thread. Infinite loops (while True: pass) can be safely terminated without locking the UI.
03 · Package Registry
Preconfigured environments load standard packages (NumPy, SciPy, pandas) and custom project wheels dynamically from PyPI.
Operational Limits & Assumptions
- · No Raw TCP Sockets: In-browser Python cannot open raw OS sockets;
requestsand raw HTTP libraries fail without wasm shims. - · C/Rust Extensions: Native binary modules require precompiled WebAssembly wheels published by maintainers.
- · Execution Overhead: Wasm execution is ~2x to 5x slower than native host Python. Useful for verification, not micro-benchmarks.
- · Worker Reset: Pressing Stop terminates the worker instance, clearing in-memory variables for a fresh restart.