Skip to content

Releases

v0.15.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 02:03
5a5d193
  • jupyter.version is the cdp-kernel version running the cell, and
    jupyter.runtime a frozen { name, version } naming the target (node,
    deno, bun, workerd, celld or browser) and the runtime's version
    where it can tell (Node, Deno and Bun; "" elsewhere), on every target.
    See The jupyter namespace
    (#531).

v0.14.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 17:39
21b0742
  • The browser kernel can have TypeScript's language service: the
    typescript option to startBrowserKernel takes 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 a cdp-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

Choose a tag to compare

@github-actions github-actions released this 19 Nov 10:15
cd78f91
  • cdp-kernel install no longer says "fnm has no default alias" for a
    Node under a node-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.png and dice.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 a cdp-kernel.diagnostics.v1 comm 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

Choose a tag to compare

@github-actions github-actions released this 17 Nov 21:17
c0fa08d
  • cdp-kernel install writes a kernelspec that survives Node upgrades. An
    npm install is copied, with its dependencies, to cdp-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 runs node or deno
    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 and install says so. install --pin keeps the exact binary, and uninstall
    removes package copies no kernelspec runs. Kernelspecs
    written by earlier releases keep their old paths: reinstall cdp-kernel and
    re-run cdp-kernel install
    (#508).

v0.12.2

Choose a tag to compare

@github-actions github-actions released this 14 Nov 06:26
d34e3a6
  • The docs show the real output of more examples: the tables, SQL
    results and charts in the jupyter namespace guide, and every example
    in the jupyter reference 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:widgets is gone, and so are the screenshots, except the
    three that 0.12.1's typings link to (#503)
    (#501).

v0.12.1

Choose a tag to compare

@github-actions github-actions released this 14 Nov 02:41
cef4d38
  • SQL_MODULES names what jupyter.sql loads in the browser target:
    DuckDB's module and its wasm and worker files. A page that maps them
    in modules runs SQL offline; a variant left unmapped still loads
    from jsDelivr
    (#495).

v0.12.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 00:35
a7f518b
  • The browser kernel's modules option maps import specifiers to URLs
    the page serves, ahead of the CDN, and CHART_MODULES names the
    packages jupyter.chart loads, 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 as ganymede.page, and a frontend asks for more rows, sorted
    by a column if it likes, over the ganymede.table.v1 comm. The kernel
    keeps the last 16 such tables
    (#489).
  • The jupyter namespace guide and the jupyter reference 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 puts jupyter.comm and the
    Comm object under one Comms section. Mentions of anywidget there and
    in the widgets guide link to anywidget.
    Existing links keep working
    (#485).

v0.11.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 18:38
4eff972
  • 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-api result. The output is
    application/vnd.dataresource+json with 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 has columns and rows. jupyter.sql.load
    makes a table from a CSV, Parquet or JSON file, rows, an Arrow table or
    a DataFrame; query, raw, close and connection cover the rest.
    DuckDB loads on the first query: @duckdb/node-api on Node, Deno and
    Bun, duckdb-wasm from a CDN on the browser target. Not on workerd or
    celld (#477).
  • jupyter.chart(spec) and jupyter.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 in currentColor. vega, vega-lite and linkedom
    load on first use. Not on workerd or celld
    (#479).
  • An example notebook, Tables, SQL and charts,
    shows jupyter.table, jupyter.sql and jupyter.chart together
    (#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.run and self.* are missing from the
    server: Ganymede 0.8.0 answers them
    (#468).

v0.10.0

Choose a tag to compare

@github-actions github-actions released this 11 Nov 08:40
ab35949
  • 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.params holds the run's parameters, a JSON object passed in the
    kernel's GANYMEDE_PARAMS environment variable (or the browser
    target's params option), and jupyter.result(name, value) publishes a
    value under a name as an application/vnd.ganymede.result+json output
    that a caller such as ganymede execute --results reads 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 to null elsewhere. Calls take { signal }
    (default jupyter.signal) and reject with a HostError and a code
    (#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

Choose a tag to compare

@github-actions github-actions released this 09 Nov 20:56
dd330ee
  • A cell can redeclare a name an earlier cell declared another way:
    import { x } after const x, or let df after const 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-level const and import bindings now run as
    let on the CDP targets, so reassigning a top-level const from a
    later cell no longer throws. One case goes the other way: a name an
    earlier cell declared with var or function can'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/globals show 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_reply while 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).