Install
Ganymede is one binary, ganymede. It needs no Python and no Jupyter install: kernels come from kernelspecs, which each kernel's own installer writes.
These steps take a Linux or macOS machine with no Python and no Jupyter to JupyterLab running TypeScript notebooks. You need a terminal, curl, and about 300 MB of disk, most of it for Node. CI runs the same commands on every pull request, on Linux and macOS, with Python hidden from PATH (scripts/test-workstation.sh). Other ways to install covers the Mac app, the script's options, the download by hand, a container, building from source, and Windows.
1. Install Ganymede
curl -fsSL https://ganymede-server.com/install.sh | shThe script downloads the latest release for your platform, checks its SHA-256, and installs ganymede into ~/.local/bin. If Node 22.18 or later is already installed, it also does step 2. If ~/.local/bin isn't on your PATH, it prints the line to add to your shell profile. Install script options lists its flags, and By hand has the same steps without it.
Check it with the built-in fake kernel, which needs nothing else:
ganymede --version
ganymede run -k fake 'hello' # prints "echo: hello" and "HELLO"2. Install Node and cdp-kernel
cdp-kernel is the kernel that runs TypeScript cells. It needs Node 22.18 or later. Check what you have:
node --versionIf that fails or prints a version below 22.18, install Node from nodejs.org, which also lists package managers and version managers (nvm, fnm, and others). Then install the kernel and register it:
npm install -g @tlockney/cdp-kernel
cdp-kernel install --runtime nodecdp-kernel install writes a kernelspec named cdp-node into Jupyter's kernels directory (see Kernel not listed). A kernelspec is a directory with a kernel.json that says how to start the kernel; Ganymede replaces {connection_file} with the file it writes for each kernel. cdp-kernel's looks like this, with paths from your machine:
{
"argv": ["/usr/local/bin/node", "/usr/local/lib/node_modules/@tlockney/cdp-kernel/dist/main.js",
"kernel", "--runtime", "node", "--conn", "{connection_file}"],
"display_name": "TypeScript (cdp-kernel, node)",
"language": "typescript",
"interrupt_mode": "message",
"metadata": { "runtime": "node", "denoCompat": false, "version": "0.17.0", "debugger": true }
}cdp-kernel also runs notebooks on Deno, Bun, workerd, and celld, one kernelspec per runtime (--runtime deno and so on); its install docs cover what each needs. Any other Jupyter kernel works the same way once its kernelspec is installed; Other kernels covers Python (ipykernel) and others.
3. Check the kernel
ganymede kernelspec list
ganymede run -k cdp-node 'const x: number = 2; x * 21'The list has a cdp-node line, and the second command prints 42. If cdp-node is missing, see Kernel not listed.
4. Install JupyterLab's frontend
ganymede lab install
ganymede lab list
ganymede lab extension listganymede lab install downloads the jupyterlab wheel from PyPI (about 18 MB), checks its SHA-256, and unpacks only the browser files: static/, schemas/, themes/, and JupyterLab's BSD-3-Clause LICENSE. No Python runs. They go in ganymede/lab/<version>/ under your local data directory: ~/.local/share (or $XDG_DATA_HOME) on Linux, ~/Library/Application Support on macOS, or $GANYMEDE_DATA_DIR when that is set. The command prints the directory.
It installs JupyterLab 4.6.6 by default; --version X.Y.Z picks another, and --force reinstalls. It also installs the frontend halves of jupyterlab_widgets and anywidget, so widgets (cdp-kernel's jupyter.widget) work; --no-default-extensions skips them, and ganymede lab extension install <package> adds other prebuilt extensions from PyPI. JupyterLab and VS Code has the details.
The default extensions are pinned too: each Ganymede release installs set versions and checks their wheels' SHA-256, as it does for JupyterLab. --latest-extensions takes the newest releases on PyPI instead.
5. Start JupyterLab
Point it at the directory that holds, or will hold, your notebooks:
mkdir -p ~/notebooks && cd ~/notebooks
ganymede lab --root-dir .It prints a URL such as http://127.0.0.1:8888/lab?token=2adb019db80b4948942534432a839642 and opens it in your browser (--no-browser only prints it). The token is a new random string each start; opening the URL with it logs the browser in with a cookie, so the page keeps working after the token leaves the address bar. If you open /lab without it, the page asks for the token. The server listens on 127.0.0.1 only. Ctrl-C stops it: open requests get 3 seconds to finish, and a second Ctrl-C stops it at once.
6. Your first notebook
In the launcher, under Notebook, pick TypeScript (cdp-kernel, node). Paste this into the first cell and press Shift-Enter:
import { format } from "npm:date-fns@4";
const day: string = format(new Date(2026, 0, 2), "EEEE, MMMM d");
await jupyter.display(jupyter.md`**${day}** is ${day.length} characters long.`);The output is "Friday, January 2 is 17 characters long.", rendered as Markdown. The npm: import downloads date-fns from the npm registry on first use, with no npm install, and jupyter.display shows a value without ending the cell. Save the notebook as first.ipynb (File › Save Notebook As…). cdp-kernel's Getting started continues from here.
7. Other frontends
VS Code
VS Code connects to ganymede serve, the same server without JupyterLab's page and without opening a browser:
cd ~/notebooks
ganymede serve --root-dir .It prints a URL such as http://127.0.0.1:8888/?token=…. In VS Code, install the Jupyter extension, open a notebook, click Select Kernel, then Select Another Kernel… › Existing Jupyter Server, and paste the URL, token included. Pick cdp-node from the list.
The Python extension is not needed for this. The Jupyter extension's manifest declares no extension dependencies, and the extensions it installs with itself are Jupyter Keymap, Notebook Renderers, Cell Tags, and Slide Show (package.json on the main branch, version 2026.6.1, checked October 2026). Its README asks for the Python extension only under "Working with Python", and VS Code's kernel management docs describe the Existing Jupyter Server flow without it. CI replays the extension's remote-server requests against ganymede serve; it does not run VS Code itself.
The terminal
ganymede execute runs a notebook top to bottom and saves the outputs, like jupyter execute; ganymede console is an interactive prompt:
ganymede execute first.ipynb --inplace
ganymede console -k cdp-nodeGetting started covers these and the rest of the command line.
8. Update and uninstall
The steps above put files in these places:
To update Ganymede, run the install command from step 1 again; it replaces the binary in place.
Or run ganymede update, which does the same from the binary itself, on Linux, macOS and Windows:
ganymede update # the latest release, if it is newer
ganymede update --check # only say whether there is one
ganymede update --version 0.9.0 # a given release, older or newerIt downloads this platform's archive over HTTPS, checks its SHA-256 against the release's .sha256, runs the new binary with --version, and only then renames it over the old one, so a failed download or a binary that won't run leaves the old one in place. A main build updates to the latest main build; --main switches a release to main, and --version switches back. It refuses a binary that cargo install, Homebrew or Nix put there, one in a cargo target directory, or one inside a Mac app bundle such as Ganymede.app, and says how to update that instead. On Windows the old binary is left as ganymede.exe.<pid>.old until a later update removes it. It doesn't update cdp-kernel, JupyterLab or ganymede-ui, and prints how to update the ones you have.
To update cdp-kernel, rerun step 2's npm install -g and cdp-kernel install lines. A new Ganymede release can default to a newer JupyterLab; run ganymede lab install again to get it. Older versions stay until you remove them.
To uninstall, remove each piece:
ganymede lab list # installed versions
ganymede lab remove 4.6.6
ganymede lab extension remove anywidget jupyterlab-widgets
cdp-kernel uninstall cdp-node
npm uninstall -g @tlockney/cdp-kernel
rm ~/.local/bin/ganymedecdp-kernel uninstall (cdp-kernel 0.6.0 and later) removes only the kernelspecs cdp-kernel wrote, and cdp-kernel list shows them; see its uninstall docs. With an older cdp-kernel, use ganymede kernelspec remove cdp-node instead.
This leaves the ganymede data directory from step 4, now empty but for bookkeeping; ~/.config/ganymede, if you wrote a ganymede.toml there; Jupyter's ~/.jupyter (JupyterLab settings and workspaces); the Jupyter data directory (~/.local/share/jupyter or ~/Library/Jupyter, which holds the notebook-signing key); and cdp-kernel's caches, which its uninstall docs list. Delete them if nothing else uses them.
9. Troubleshooting
Port in use
ganymede lab tries port 8888 and moves to the next free port, up to 50 more, so read the port from the URL it prints. ganymede serve attaches to a running Ganymede server that already covers the target folder (Attaching to a running server); when starting a server of its own (or with --own-server), it does not move ports and fails with Address already in use if port 8888 is taken. Pass --port with another number, or --port 0 for any free port.
macOS blocks the binary
macOS marks files downloaded by a browser with the com.apple.quarantine attribute, and Gatekeeper refuses to run them ("cannot be opened because the developer cannot be verified") because the binaries are not signed or notarized. curl does not set the attribute, so the install script and the by-hand steps are not affected. If you downloaded the archive in a browser, verify it, then clear the attribute before the first run:
xattr -d com.apple.quarantine ganymedeOr, after the first refusal, allow it under System Settings, Privacy & Security.
glibc too old
The Linux binaries are built on Ubuntu 22.04 against glibc, so they need glibc 2.35 or newer (Ubuntu 22.04, Debian 12, Fedora 36, or later). On an older system, running ganymede fails with version `GLIBC_2.xx' not found; ldd --version shows the glibc you have. On a musl system such as Alpine it fails with a bare not found (the missing piece is the glibc loader, not ganymede). The install script checks for both and stops before downloading. There is no musl build yet; build from source instead.
Kernel not listed
ganymede kernelspec list reads kernelspecs from Jupyter's data directories (How Ganymede finds kernels has the full order):
| Platform | Kernels directory |
|---|---|
| Linux | ~/.local/share/jupyter/kernels (or $XDG_DATA_HOME/jupyter/kernels) |
| macOS | ~/Library/Jupyter/kernels |
| Any | $JUPYTER_DATA_DIR/kernels, then each entry of $JUPYTER_PATH, when set |
then /usr/local/share/jupyter/kernels and /usr/share/jupyter/kernels. ganymede kernelspec paths prints the directories it searched, and ganymede info prints the data directories in use:
ganymede kernelspec paths
ganymede infoIf cdp-node isn't in any of them, cdp-kernel install ran with a different HOME, JUPYTER_DATA_DIR, or XDG_DATA_HOME; run it again in the same environment as ganymede. If the shell says cdp-kernel: command not found after npm install -g, npm's global bin directory isn't on your PATH; npm prefix -g prints its parent.
Behind a proxy
ganymede lab install and ganymede lab extension install use HTTPS_PROXY (or ALL_PROXY) from the environment and trust the certificates in the system's trust store, so a proxy's CA installed there works. npm reads the same variable, or its own https-proxy setting, for npm install -g and for the packages cdp-kernel fetches for npm: imports. Set it before running them, for example export HTTPS_PROXY=http://proxy.example.com:3128. The install script uses curl, or wget without it, and both read https_proxy in lower case.
Other ways to install
From the Mac app
The Mac app carries the same ganymede binary. In Ganymede's Settings, General, Command Line Tool, Install links it to ~/.local/bin/ganymede. If Settings says ~/.local/bin isn't on your PATH, add the line it shows (in ~/.zprofile with zsh). The link points into the app, so the command updates when the app does, and ganymede update refuses it and says to update the app instead. Moving or deleting the app breaks the link; after a move, Update Link in Settings repoints it. Rerunning install.sh replaces the link with its own copy, which then no longer follows the app. Settings never replaces a ganymede it didn't put there unless you choose Replace…, which moves the old one to the Trash.
Install script options
Options go after sh -s --:
| Option | Effect |
|---|---|
--version X.Y.Z | Install that release instead of the latest. |
--main | Install the latest build of main instead of a release (see Latest main build). |
--bin-dir DIR | Install into DIR instead of ~/.local/bin. |
--no-kernel | Skip cdp-kernel. |
--runtime NAME | cdp-kernel's target runtime: node (default), deno, bun, workerd, or celld. |
curl -fsSL https://ganymede-server.com/install.sh | sh -s -- --version 0.1.0 --no-kernelIf the cdp-kernel step fails, the script says so and still exits 0, since ganymede is installed. The script is site/install.sh; it needs only sh, curl or wget, tar, and sha256sum or shasum.
Latest main build
To try a change that isn't released yet without building from source, install the latest build of main with --main:
curl -fsSL https://ganymede-server.com/install.sh | sh -s -- --mainEvery push to main that changes code, other than a release commit, builds the release targets and replaces the files of the main-build prerelease. Its ganymede --version names the commit, such as ganymede 0.5.0+main.0123456789ab. The archives are named ganymede-main-<target> and carry checksums and a build provenance attestation like a release's (Verify a download). It installs only ganymede (and cdp-kernel's latest release, as usual), not the apps. Run the plain install command to go back to the latest release.
A main build is untested beyond CI. If the download fails or fails its checksum while a new build is uploading, run the command again.
By hand
Releases attach a prebuilt archive per platform: Linux (x86_64, aarch64), macOS (aarch64, x86_64), and Windows (x86_64), each with a .sha256 beside it, SHA256SUMS for all of them, and a build provenance attestation. Get one from the releases page, or do what the install script does. This downloads the latest release, checks its SHA-256, and installs ganymede into ~/.local/bin:
VERSION=$(curl -fsSLI -o /dev/null -w '%{url_effective}' \
https://github.com/tlockney/ganymede/releases/latest | sed 's|.*/v||')
case "$(uname -s)-$(uname -m)" in
Linux-x86_64) TARGET=x86_64-unknown-linux-gnu ;;
Linux-aarch64 | Linux-arm64) TARGET=aarch64-unknown-linux-gnu ;;
Darwin-arm64) TARGET=aarch64-apple-darwin ;;
Darwin-x86_64) TARGET=x86_64-apple-darwin ;;
*) echo "no prebuilt binary for $(uname -sm)" >&2 ;;
esac
NAME=ganymede-$VERSION-$TARGET
cd "$(mktemp -d)"
curl -fsSLO "https://github.com/tlockney/ganymede/releases/download/v$VERSION/$NAME.tar.gz"
curl -fsSLO "https://github.com/tlockney/ganymede/releases/download/v$VERSION/$NAME.tar.gz.sha256"
sha256sum -c "$NAME.tar.gz.sha256" 2>/dev/null || shasum -a 256 -c "$NAME.tar.gz.sha256"
tar -xzf "$NAME.tar.gz"
mkdir -p ~/.local/bin && install -m 755 "$NAME/ganymede" ~/.local/bin/
export PATH="$HOME/.local/bin:$PATH" # if it is not on PATH alreadySet VERSION=0.1.0 instead of the first line to pin a release.
On Windows
The install script and the commands above need a POSIX shell. In PowerShell, this downloads the latest release's .zip, checks its SHA-256, and puts ganymede.exe in %LOCALAPPDATA%\Programs\ganymede, which it adds to your user PATH:
$Version = (Invoke-RestMethod https://api.github.com/repos/tlockney/ganymede/releases/latest).tag_name.TrimStart("v")
$Name = "ganymede-$Version-x86_64-pc-windows-msvc"
$Base = "https://github.com/tlockney/ganymede/releases/download/v$Version"
Set-Location (New-Item -ItemType Directory -Force "$env:TEMP\$Name")
Invoke-WebRequest "$Base/$Name.zip" -OutFile "$Name.zip"
Invoke-WebRequest "$Base/$Name.zip.sha256" -OutFile "$Name.zip.sha256"
$Expected = (Get-Content "$Name.zip.sha256").Split(" ")[0]
if ((Get-FileHash "$Name.zip" -Algorithm SHA256).Hash -ne $Expected) { throw "checksum mismatch" }
Expand-Archive "$Name.zip" -DestinationPath . -Force
$Bin = "$env:LOCALAPPDATA\Programs\ganymede"
New-Item -ItemType Directory -Force $Bin | Out-Null
Copy-Item "$Name\ganymede.exe" $Bin
$UserPath = [Environment]::GetEnvironmentVariable("Path", "User")
if (";$UserPath;" -notlike "*;$Bin;*") {
[Environment]::SetEnvironmentVariable("Path", "$UserPath;$Bin", "User")
}Open a new terminal so it picks up the PATH, then follow the steps above from step 2, "Install Node and cdp-kernel"; the commands are the same. Kernelspecs go in %APPDATA%\jupyter\kernels.
The binary is not signed. Windows doesn't flag a file that PowerShell downloaded, but one saved from a browser may get a SmartScreen "Windows protected your PC" prompt: choose More info, then Run anyway, or run Unblock-File on the .zip before extracting it.
Windows binaries are built and released as a best effort: they are not tested end to end, and signal interrupts are not implemented there. There are no plans for Windows CI; see Known gaps.
Verify a download
The .sha256 files catch a damaged or truncated download. They come from the same place as the archive, so they cannot show that the archive is the one this repository built. Each release archive also carries a signed build provenance attestation, made by the release workflow from the commit the release's tag points at. With the GitHub CLI:
gh attestation verify "$NAME.tar.gz" --repo tlockney/ganymedeIt succeeds only for an archive built by tlockney/ganymede's own release workflow, and prints the ref and commit it was built from. A release may be built from its tag or from its release commit's push to main, so check the commit: it is the one the tag points at (git rev-parse vX.Y.Z^{commit} in a clone). A main build's attestation names a commit no release tag points at.
In a container
container/Dockerfile builds an image with Ganymede, Node 24, cdp-kernel's cdp-node kernelspec, and JupyterLab's frontend from ganymede lab install. It has no Python. Each release is published as ghcr.io/tlockney/ganymede:<version> (and latest), for amd64 and arm64:
docker run --rm -p 8888:8888 -v "$PWD:/notebooks" ghcr.io/tlockney/ganymedeIt runs ganymede lab --root-dir /notebooks on port 8888, so it serves /notebooks, here the current directory. Open the URL it prints with 127.0.0.1 in place of 0.0.0.0. The server runs as uid 1000, so on Linux the mounted directory must be writable by that user. Without -v, notebooks go away with the container.
Or build it from a clone of the repository:
docker build -f container/Dockerfile -t ganymede .
docker run --rm -p 8888:8888 ganymedeThe image installs the release named by the checkout's Cargo.toml; add --build-arg GANYMEDE_SOURCE=checkout to build the checkout itself.
From source
With a Rust toolchain (rustup):
cargo install --git https://github.com/tlockney/ganymede ganymede-cli
ganymede --versionFrom a checkout, cargo install --path crates/ganymede-cli does the same.