Using the new Python 3.13 REPL with Emscripten

I would like to get the new Python REPL working in the in-browser Emscripten-powered WebAssembly (in Tools/wasm).

I’m not well-versed with terminal emulation, WebAssembly, or Emscripten but I do have an interest in this topic, so I’m starting this discussion with the hope of finding others interested in this niche need within this niche topic.

From my understanding, pyrepl requires a TTY to load properly.

I suspect an xterm.js extension, like xterm-pty, might be required. If anyone would like to work on this or try guiding me in working on this, I would be happy to help.

1 Like