main.py
How should this program receive values from
input()?Each call to
input() consumes one line from top to bottom. This mode is useful for repeatable tests and marking.Install a package or Pyodide-compatible wheel
Native Windows/macOS/Linux wheels are not compatible. Use pure-Python or wasm32/emscripten wheels.
Requested packages
Pygame: use
pygame-ce; imports remain import pygame. PyCharm: it is a desktop IDE, not a Python wheel. Export the project ZIP and open the extracted folder in PyCharm.Ctrl/Cmd + EnterRun the active file.
Ctrl/Cmd + SExport the active file.
pip install nameInstall from the interactive console.
clearClear console output.
input()Use Preload input for a fixed list, or Enter input to respond while the program is running.
Status hexagonHover or focus it for the current state. Click it to open input, jump to a recognised error line, or inspect Output.
Error guideCommon Python tracebacks are translated into student-friendly explanations and repair steps. Unmatched failures are labelled Unknown Error.
pygameRuns in the canvas. Use an async loop and yield with
await asyncio.sleep(...).matplotlibFigures appear in Program display after execution.
Example library categories
The first runtime and package loads require internet access. The studio first uses a dedicated worker, then automatically falls back to an isolated frame if worker policy blocks startup. Uploaded wheels must be pure Python (
-none-any.whl) or WebAssembly wheels tagged wasm32. PyCharm is a desktop IDE and is supported through project ZIP export.