cpython-wasm-svelte-demo Svelte Themes

Cpython Wasm Svelte Demo

Minimal svelte app running python 3.11 compiled to wasm.

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:

  • Typescript
  • Integration into a svelte app rather than vanilla html.

Developing

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

Links

Top categories

Loading Svelte Themes