Skip to content

IntroductoryNo Jupyter or Deno experience needed.

cdp-kernel documentation ​

cdp-kernel lets you write TypeScript and JavaScript in Jupyter notebooks and run them on Node, Deno, Bun, workerd or celld. These docs are grouped by how much you already know. Each page shows its level under the title.

New to notebooks ​

Start here if you haven't used Jupyter, or haven't used it with TypeScript. No Deno background is needed.

  1. Getting started: what notebooks and kernels are, installing, a first notebook, and what notebooks are good for.
  2. Install: every install route (npm, JSR) and what each target runtime needs.

Using cdp-kernel ​

Guides for day-to-day use, once you've run a first notebook.

  • Writing notebooks: imports, npm: and jsr: packages, the lockfile, Deno projects, interrupt and inspection.
  • The jupyter namespace: rich output (Markdown, HTML, SVG, images, charts, tables), custom display, prompt and confirm, and running notebooks written for Deno.
  • Runtimes: what's different on Bun, workerd and celld, and Workers projects.
  • Widgets and comms: interactive anywidget-style widgets and the comm API.
  • Debugger: breakpoints and stepping in JupyterLab on Node and Deno.

Reference pages to look things up in:

  • Editor types: type declarations for the notebook globals, for type-checking in your editor.
  • Known gaps: what doesn't work yet, per runtime.

How it works ​

Advanced material on the kernel's internals. You don't need it to use cdp-kernel.

Contributing ​

  • Development: running from a checkout, tests, and releasing.

MIT license. Parts are ports of Deno's Jupyter kernel, © the Deno authors.