Practice Β· Runs in your browser

Python playground

Write and run Python here. Everything executes locally in your browser via Pyodide β€” no signup, no server, and your code is saved to this browser between visits. Cmd/Ctrl+Enter to run.

Python via Pyodide

editor.py
output

          

What runs here

  • Full CPython standard library β€” asyncio, dataclasses, re, json, collections, itertools, and more.
  • Pure-Python packages via micropip.install("package").
  • Top-level await (Pyodide runs your code as a coroutine).
  • Anything that requires a browser: fetch via pyodide.http, DOM access via import js.

What doesn't

  • Native extensions Pyodide has not built (e.g. torch, tensorflow). You'll see an ImportError and can pivot to a pure-Python alternative.
  • File I/O to your real disk β€” Pyodide has an in-memory virtual filesystem.