Code

Code and environments

Supported languages, per-lecture packages, and where each language's code actually runs.

Try the optional Practise Python and output markers tour with resettable practice content. Your account data stays unchanged.

Python runs in an isolated browser worker with Pyodide. Network access is limited to its pinned runtime; packages requiring other download hosts are unavailable. JavaScript, TypeScript, SQL, and R use isolated browser runners. C and C++ run only when this environment's compiler capability check succeeds; Run stays disabled when it is unavailable. You can still edit, save, and link C/C++ code to notes. Importing a supported file does not guarantee execution support. Other languages can be edited and saved; this workspace does not enable their cloud execution.

Every run is capped at 10 seconds; a program that hangs is stopped automatically.

Packages and environment files

Click Environment in the file tree to see and edit each language's package manifest:

  • Python: requirements.txt — packages install before your code runs, and a requirements.lock file records the exact versions that were resolved.
  • JavaScript/TypeScript: package.json — dependencies load from a public CDN by exact pinned version.
  • SQL: schema.sql runs once before your query file, so you can set up tables to query against.
  • R: packages.R — only packages with a WebAssembly build available in the browser can install there; anything else needs the cloud sandbox.

A package that can't install in the browser shows a clear message saying so, rather than failing silently.