🧪 Playground
A carregar Python (15 MB, uma vez)…Executa Python no navegador
CPython completo via Pyodide. Escreve, executa, partilha. O código vive no URL — copia o link e o destinatário vê o teu snippet exato.
NEW✨ Refactor Coach — paste any Python, get a senior review →A iniciar CPython no navegador…
○A descarregar Pyodide WebAssembly (≈ 4 MB)○A carregar o interpretador CPython○A montar a biblioteca padrão○Pronto — shell Python 3.12 limpaDica: enquanto o Python aquece, edita o código à esquerda.
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.
Dicas
- Cmd/Ctrl + Enter executa.
- Pyodide inclui pandas, numpy, scipy, matplotlib — importa directamente.
- O botão Partilhar coloca o teu código no URL — cola onde quiseres, sem signup.
- O código persiste no teu navegador entre visitas.
- Pacotes não incluídos (requests, httpx, pydantic, attrs) instalam-se via micropip no primeiro run.