⚠️
Serve over HTTP
PyRun cannot run from a file:// URL — browsers block the cross-origin requests that Pyodide and ESM imports require.

Start a local server and open it via localhost:
python -m http.server 8080
npx serve .
npx live-server
Initializing…
main.py
Python 3
Ctrl
Console
Run your code to see output here
Press Ctrl+Enter or click Run