π§ͺ 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.
NEWβ¨ Refactor Coach β paste any Python, get a senior review β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.
Fetch GitHub's API with requests. Auto-installed via micropip.
Pure-stdlib CSV with DictReader / DictWriter. No pandas needed.
Memory-friendly streaming with yield and generator expressions.
with-statement support via class + via @contextmanager decorator.
PEP 604 union types, TypedDict, Protocol β what mypy expects in 2026.
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 after a free signup.
- Code persists in your browser between visits.
- Non-stock packages (requests, httpx, pydantic, attrs) auto-install via micropip on the first run.