Repository navigation
Releases
Releases · tlockney/cdp-kernel
v0.15.0
jupyter.versionis the cdp-kernel version running the cell, and
jupyter.runtimea frozen{ name, version }naming the target (node,
deno,bun,workerd,celldorbrowser) and the runtime's version
where it can tell (Node, Deno and Bun;""elsewhere), on every target.
See Thejupyternamespace
(#531).
v0.14.0
- The browser kernel can have TypeScript's language service: the
typescriptoption tostartBrowserKerneltakes URLs for TypeScript,
its lib files and a Web Worker (@tlockney/cdp-kernel/browser/language-worker),
and typed completion, tooltips, type errors (cdp-kernel.diagnostics.v1)
and signature help, definition and rename (cdp-kernel.language.v1)
then work in a page as on the Node targets. Without the option nothing
changes. Types for imported packages aren't fetched yet, so they are
any. See The browser
(#524). - Signature help, jump to definition and rename across cells, for
frontends that offer them: the kernel answers acdp-kernel.language.v1
comm, from the cells the frontend shows, and a name declared again in a
later cell is renamed one declaration at a time. See
Signatures, definitions and renames for frontends
(#522).
v0.13.0
cdp-kernel installno longer says "fnm has no default alias" for a
Node under anode-versions/directory that isn't fnm's
(#510).- The package no longer includes TypeScript (24 MB, copied again into each
installed kernel version). Typed completion and inspection use the
notebook project's TypeScript 6 if it has one, otherwise TypeScript 6
installed once into the shared npm cache on first use; completion shows
runtime values meanwhile, and stays untyped offline. See
TypeScript for typed completion
(#513). - The docs site no longer serves the widget screenshots
progress.png,
temperature.pnganddice.png. Typings from 0.9.0 through 0.12.1
linked to them, so editor hovers on those versions lose the images;
upgrade to get the current typings
(#503). - Type errors as you type, for frontends that show them: the kernel
answers acdp-kernel.diagnostics.v1comm with the errors TypeScript
finds in the cell being edited, checked against the cells that ran,
leaving out those notebook rules make false (a name declared again, an
import that hasn't run). See
Type errors for frontends
(#514).
v0.12.3
cdp-kernel installwrites a kernelspec that survives Node upgrades. An
npm install is copied, with its dependencies, tocdp-kernel/<version>/
in Jupyter's data directory (as hard links where it can, so it takes no
extra space while the npm install exists), and the kernelspec runsnodeordeno
through the version manager's shim or link (mise, asdf, volta, Homebrew,
fnm's default alias), not through the versioned paths that broke when
that Node was removed. nvm and n have no stable path, so their binary is
kept andinstallsays so.install --pinkeeps the exact binary, anduninstall
removes package copies no kernelspec runs. Kernelspecs
written by earlier releases keep their old paths: reinstall cdp-kernel and
re-runcdp-kernel install
(#508).
v0.12.2
- The docs show the real output of more examples: the tables, SQL
results and charts in thejupyternamespace guide, and every example
in thejupyterreference that runs on its own, including a counter
widget that runs on the page. Docs notebooks now run with nbclient,
which saves widget state
(#499). - The widgets guide and reference show live widgets instead of
screenshots. The docs build runs each example, sends the clicks and
slider moves the screenshots showed as the view would, and saves the
kernel's replies, so each widget runs on the page as the kernel left it.
npm run docs:widgetsis gone, and so are the screenshots, except the
three that 0.12.1's typings link to (#503)
(#501).
v0.12.1
SQL_MODULESnames whatjupyter.sqlloads in the browser target:
DuckDB's module and its wasm and worker files. A page that maps them
inmodulesruns SQL offline; a variant left unmapped still loads
from jsDelivr
(#495).
v0.12.0
- The browser kernel's
modulesoption maps import specifiers to URLs
the page serves, ahead of the CDN, andCHART_MODULESnames the
packagesjupyter.chartloads, so a page can ship them and draw
charts offline
(#491). - A table bigger than its output pages through the kernel: the output
names it asganymede.page, and a frontend asks for more rows, sorted
by a column if it likes, over theganymede.table.v1comm. The kernel
keeps the last 16 such tables
(#489). - The
jupyternamespace guide and thejupyterreference group their
members by topic: showing output, data, asking and interrupting, and
notebooks as programs. Mentions of anywidget link to the widget model
(#486). - The widgets and comms reference opens with an overview of when to use
a widget and when a comm, groups the widget model's members (state,
events, custom messages, closing) and putsjupyter.command the
Commobject under one Comms section. Mentions of anywidget there and
in the widgets guide link to anywidget.
Existing links keep working
(#485).
v0.11.0
jupyter.table(value, options?)shows rows as a table: an array of
row objects or arrays, an Arrow table, a Polars DataFrame or a
@duckdb/node-apiresult. The output is
application/vnd.dataresource+jsonwith up to 1,000 rows (limit, at
most 10,000 and 1 MB) and the total row count, a plain HTML table of
the first and last rows, and a text summary of each column's type and
range for agents. Arrow tables and DuckDB results now show this way
as a cell's value, and Polars DataFrames show the new output instead of
50 rows and a 10-row HTML table
(#475).jupyter.sql`...`runs SQL on an in-memory DuckDB database, with
each${value}as a bound parameter, and resolves to a result that
shows as a table and hascolumnsandrows.jupyter.sql.load
makes a table from a CSV, Parquet or JSON file, rows, an Arrow table or
a DataFrame;query,raw,closeandconnectioncover the rest.
DuckDB loads on the first query:@duckdb/node-apion Node, Deno and
Bun, duckdb-wasm from a CDN on the browser target. Not on workerd or
celld (#477).jupyter.chart(spec)andjupyter.chart(Plot, options)draw a
Vega-Lite or Vega spec, or an Observable Plot chart, in the kernel as
one SVG with its title and legend inside, plus a text summary. Text
and axes are drawn incurrentColor. vega, vega-lite and linkedom
load on first use. Not on workerd or celld
(#479).- An example notebook, Tables, SQL and charts,
showsjupyter.table,jupyter.sqlandjupyter.charttogether
(#481). - The site's landing page puts Node and Deno first and lists Bun, workerd
and celld under "Also runs on"
(#468). - The
jupyter.host()docs and editor types no longer say
notebooks.results,notebooks.runandself.*are missing from the
server: Ganymede 0.8.0 answers them
(#468).
v0.10.0
- esbuild, which bundles npm imports for workerd and celld cells, is now
0.28 (was 0.25), on npm and JSR. It needs macOS 12 or later
(#457). - Parameters and named results, so a notebook can run as a program:
jupyter.paramsholds the run's parameters, a JSON object passed in the
kernel'sGANYMEDE_PARAMSenvironment variable (or the browser
target'sparamsoption), andjupyter.result(name, value)publishes a
value under a name as anapplication/vnd.ganymede.result+jsonoutput
that a caller such asganymede execute --resultsreads by name
(#456). jupyter.host(): under a Ganymede server, read and search other
notebooks from a cell through the server's host API, with no token in
the kernel. Resolves tonullelsewhere. Calls take{ signal }
(defaultjupyter.signal) and reject with aHostErrorand acode
(#461).- When the runtime exits (
process.exit()in a cell, or a crash), the
kernel closes the comms that died with it, so frontends don't keep
widgets or comms no runtime answers
(#461).
v0.9.0
- A cell can redeclare a name an earlier cell declared another way:
import { x }afterconst x, orlet dfafterconst df. Before,
it failed with "Identifier has already been declared" until a restart,
since the inspector's REPL mode only allows the same kind of
declaration again. Top-levelconstand import bindings now run as
leton the CDP targets, so reassigning a top-levelconstfrom a
later cell no longer throws. One case goes the other way: a name an
earlier cell declared withvarorfunctioncan't be imported by a
later cell any more (restart the kernel, or rename)
(#444). - Reference pages for
jupyter
and widgets and comms:
each member's arguments, return value, errors and an example. They are
generated from the doc comments on the globals' types, so editors that
load@tlockney/cdp-kernel/globalsshow the same text on hover
(#440). - The kernel answers on shell and control only once all five ports in
the connection file are bound. Before, a client could get
kernel_info_replywhile the heartbeat port was still unbound
(#438). - The support policy now tests
every supported Node line on Linux and the newest one on macOS; Node 22
and 24 are no longer run on macOS for each pull request
(#434). - The browser target is covered by the support policy:
CI tests it in Chromium, WebKit and Firefox, and it is no longer
labelled experimental. Nothing in it changed
(#429).