1
When your script calls input(), it reads values from here one line at a time. Enter each answer on a new line before running:
Install pure Python packages directly from PyPI into your browser environment:
Keyboard Shortcuts
| Ctrl + Enter (or Cmd + Enter) | Run Python script |
| Ctrl + S | Download current script (.py) |
| Ctrl + F | Find & replace in editor |
| F1 | Open editor command palette |
| Tab / Shift + Tab | Indent / Dedent code (4 spaces) |
| Esc | Dismiss modal or notification |
Privacy & Architecture
This playground runs 100% locally in your browser using WebAssembly (Pyodide v0.27.3).
- Your code is never transmitted to an external execution server.
- Execution occurs in a Web Worker, ensuring high responsiveness and allowing instant interrupts (Stop).
- Matplotlib figures are automatically captured and rendered directly inside the Visuals tab.
- Multi-file support enables creating helper modules and importing them seamlessly.