Back to Cpython

Simple REPL for Python WASM

Platforms/emscripten/web_example/index.html

3.15.0a8902 B
Original Source

Simple REPL for Python WASM

print('Welcome to WASM!')

Run codeStart REPLStopClear

The simple REPL provides a limited Python experience in the browser. Tools/wasm/README.md contains a list of known limitations and issues. Networking, subprocesses, and threading are not available.

SharedArrayBuffer, which is required for this demo, is not available in your browser environment. One common cause of this failure is loading index.html directly in your browser instead of using server.py as described in Tools/wasm/README.md.

For more details about security requirements for SharedArrayBuffer, see this MDN page.