@jupyter-kit/vue

Vue 3 wrapper around @jupyter-kit/core.
1,506 26
Install
npm install @jupyter-kit/vue
Latest Version:3.0.1
Vue:3
License:Apache-2.0
Last Updated:Oct 3, 2026
Links: GitHub  ·  npm
Maintainer: righ

@jupyter-kit/vue

Vue 3 wrapper around @jupyter-kit/core. Mounts the renderer into an internal <div> once and keeps it alive across prop changes via handle.update(...) (so open editors / executors don't reset when the notebook is edited).

Install

pnpm add @jupyter-kit/vue vue

Usage

<script setup lang="ts">
import { Notebook } from '@jupyter-kit/vue';
import { python } from '@jupyter-kit/core/langs/python';
import { createKatexPlugin } from '@jupyter-kit/katex';

import notebook from './notebook.json';
import '@jupyter-kit/theme/themes/default.css';
import '@jupyter-kit/syntax/themes/one-dark.css';
import 'katex/dist/katex.min.css';

const plugins = [createKatexPlugin()];
</script>

<template>
  <Notebook
    :ipynb="notebook"
    language="python"
    :languages="[python]"
    :plugins="plugins"
    filename="notebook.ipynb"
    math-align="left"
    @load="() => console.log('mounted')"
  />
</template>

Props

All RendererOptions from core are props, plus:

  • ipynb: Notebook — the notebook JSON (required).
  • @load event — fired once after first mount.

The component also exposes { handle(), el() } via defineExpose, so a template ref can reach the underlying RendererHandle or the mount element:

<script setup lang="ts">
import { ref, onMounted } from 'vue';
const r = ref();
onMounted(() => r.value.handle()?.download());
</script>

<template><Notebook ref="r" :ipynb="notebook" /></template>

License

Apache-2.0.

Related Packages

render-jupyter-notebook-vue

The render-jupyter-notebook-vue is a vue component that renders the notebook fil...

14,466 37
@astrojs/vue

Use Vue components within Astro

4,883,748 63,526
@ceereals/vue-pdf

Vue PDF - Create PDF documents using Vue components

20,671 128
@edgedev/template-engine

Lightweight template renderer for Edge CMS content.

13,152
vue-lynx

Vue 3 framework for building Lynx apps

8,613 574

Version History

Version Released Vue License
3.0.1 ^3.3.0 Apache-2.0
3.0.0 ^3.3.0 Apache-2.0
Pre-releases (8)
Version Released Vue License
3.0.0-rc.8 ^3.3.0 Apache-2.0
3.0.0-rc.7 ^3.3.0 Apache-2.0
3.0.0-rc.6 ^3.3.0 Apache-2.0
3.0.0-rc.5 ^3.3.0 Apache-2.0
3.0.0-rc.4 ^3.3.0 Apache-2.0