cpython-wasm-svelte-demo
Python in the browser (via WebAssembly). A minimal typescript example in a SvelteKit app.
This app is quite similar to the earlier demos in ethanhs/python-wasm
(which has now been ported to the main python/cpython
repo in Tools/wasm
).
Relative to that demo, this one removes some complexity (specifically, related to interactions with xterm.js) while adding some complexity in the form of:
To get started:
# Install
npm i
# Start a dev server @ :3000
npm run dev
# To create a production version of your app:
npm run build
# Preview the production build:
npm run preview
ethanhs/python-wasm
OG python demo. Still a lot of discussion there re:progress.ctypes
/libffi
work:
SharedArrayBuffer
: Security requirements (mdn)