Skip to main content

Pyde - a browser based Python development environment

Downloaded: 2

Last edit: 12 September 2026

Resource Type Teaching Resources, Example Programs and Live Lessons
Curriculum Topic Programming
English Key Stage 11-14 year (KS3), 14-16 years (KS4)
Scottish Curriculum Levels S1-S3 (11 - 15 years), S5 Higher (16-17 years)
  • Run Python — full CPython 3.12, compiled to WebAssembly (via Pyodide), executing directly in your tab. stdout/stderr are captured and shown in the console, with errors colour-coded.
  • Syntax highlighting — CodeMirror 5 with a Python mode and the Dracula theme.
  • Multi-cursor editing — select a word and press Cmd-D / Ctrl-D to select the next occurrence, VS Code / Sublime style.
  • Block comment / indent — select some lines, press # to toggle a comment prefix on all of them, or Tab / Shift-Tab to indent/dedent the block.
  • Download / Upload — save your code as a .py file, or load one from disk.
  • Virtual input file — paste text into the "Program input file" box and it's readable from Python via open("filename"). Any files your program writes are picked up automatically and offered as downloads.
  • Turtle graphics — import turtle (or from turtle import *) renders to an on-page canvas.
  • p5.js sketches — write setup() / draw() functions and call p5.background(...)p5.ellipse(...), etc. p5.js is loaded from CDN on demand.
  • Parsons puzzles — turn the current code into a drag-and-drop line-reordering puzzle, with a Check button that highlights right/wrong placements. Shareable as a standalone puzzle link.
  • Share via URL — the whole program (or just a Parsons puzzle) is LZ-compressed into the page's URL hash, so a link fully reproduces it with no backend.
  • Tidy — auto-formats the code to PEP8 style with autopep8, installed on demand via micropip the first time it's used.

https://github.com/milesberry/pyde