Skip to content

Demo running web assembly apps a terminal with blocking stdin/stdout/stderr

License

Notifications You must be signed in to change notification settings

codembark/wasm-terminal

 
 

Repository files navigation

Python wasm-terminal

Live version here: https://wasm-terminal.firebaseapp.com/

This is a small demo of running Python in the browser with a focus on implementing stdout/stderr and blocking stdin.

Python compiled to WebAssembly is supplied by Pyodide.

This demo runs Pyodide in a Web Worker so it's on a separate thread and uses SharedArrayBuffer and Atomics in javascript to allow stdin to block Python execution until the UI asynchronously resolves input in the terminal.

About

Demo running web assembly apps a terminal with blocking stdin/stdout/stderr

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.2%
  • HTML 3.3%
  • CSS 0.5%