Try in StackBlitz
Every framework wrapper has its own end-to-end example on StackBlitz. The
projects boot Vite + Pyodide (or WebR), render the showcase.ipynb fixture,
and expose a chrome / syntax theme picker and a file-upload slot for your
own notebooks. Fork and hack away.
React @jupyter-kit/react + Pyodide. Source: github.com/righ/jupyter-kit-react-example
Vue 3 @jupyter-kit/vue + Pyodide. Source: github.com/righ/jupyter-kit-vue-example
Svelte 5 @jupyter-kit/svelte + Pyodide. Source: github.com/righ/jupyter-kit-svelte-example
Web Component @jupyter-kit/wc + WebR. Source: github.com/righ/jupyter-kit-wc-example-with-r
What’s inside each example
- Showcase notebook — the same
showcase.ipynbfixture used in this site’s live demos, bundled assrc/showcase.json(orsrc/r.jsonfor the WebR variant). - Theme picker — 13 chrome + 8 syntax themes imported as strings via
Vite’s
?inlinequery from@jupyter-kit/theme-all. - File upload — replace the default notebook with any local
.ipynbon the fly. - All plugins wired —
@jupyter-kit/katex-cdn,@jupyter-kit/widgets,@jupyter-kit/editor-codemirror(Shift+Enter to run).
Which to start from
| Your stack | Fork this |
|---|---|
| React app | jupyter-kit-react-example |
| Vue 3 app | jupyter-kit-vue-example |
| Svelte 5 app | jupyter-kit-svelte-example |
Vanilla JS / Astro / plain <script> | jupyter-kit-wc-example-with-r |
The Web Component example is also the smallest (no framework runtime) — good starting point if you want the renderer on a static page or inside another ecosystem.
Variants
- Python (Pyodide) — React / Vue / Svelte versions run Python in-browser.
- R (WebR) — the Web Component example runs R via WebR, with the
@codemirror/legacy-modesR mode for syntax highlighting.
Swapping between them is a single-line change: replace
createPyodideExecutor with createWebRExecutor (or vice versa) and pick
the matching grammar / fixture.