🧪 Playground
Loading Python (15 MB, one-time)…Run Python in your browser
Full CPython via Pyodide. Write, run, share. Code lives in the URL — copy the link and the recipient sees your exact snippet.
Bringing up CPython in your browser…
○Fetching Pyodide WebAssembly (≈ 4 MB)○Loading the CPython interpreter○Mounting the standard library○Ready — clean Python 3.12 shellTip: while Python warms up, try editing the code on the left.
Headless matplotlib via Pyodide — figure renders inline in the output panel.
Memory-friendly streaming with yield and generator expressions.
with-statement support via class + via @contextmanager decorator.
groupby, accumulate, pairwise, combinations — the lazy toolkit.
Real-world decorator patterns: logging wrapper, functools.cache, retry on failure.
Real database (in-memory) — no install. Create, insert, query, parameterise.
Padding, alignment, thousand separators, dates, debug syntax.
Real cleaning: parse dates, strip whitespace, fill missing, dedupe.
@property + @setter pattern for invariant-protected attributes.
Tips
- Cmd/Ctrl + Enter runs your code.
- Pyodide includes pandas, numpy, scipy, matplotlib — `import` them directly.
- Share button puts your code in the URL — paste anywhere, no signup needed.
- Code persists in your browser between visits.
- Non-stock packages (requests, httpx, pydantic, attrs) auto-install via micropip on the first run.