Skip to content

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.

What’s inside each example

  • Showcase notebook — the same showcase.ipynb fixture used in this site’s live demos, bundled as src/showcase.json (or src/r.json for the WebR variant).
  • Theme picker — 13 chrome + 8 syntax themes imported as strings via Vite’s ?inline query from @jupyter-kit/theme-all.
  • File upload — replace the default notebook with any local .ipynb on 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 stackFork this
React appjupyter-kit-react-example
Vue 3 appjupyter-kit-vue-example
Svelte 5 appjupyter-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-modes R 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.