JupyterLab and VS Code
Ganymede serves the same REST and websocket API as jupyter_server, so existing frontends connect to it without changes. Start the server first:
ganymede serve --root-dir ~/notebooks --port 8888VS Code
In the Jupyter extension, choose Select Kernel, then Select Another Kernel… › Existing Jupyter Server, and paste the URL ganymede serve printed, token included. VS Code lists the kernelspecs Ganymede found; pick one. The Python extension isn't needed for this; Install gives the sources.
The extension's remote-server flow passes against Ganymede: listing kernels and sessions, starting, interrupting, and restarting a kernel, stdin, and running cells.
JupyterLab
Ganymede serves JupyterLab's own static bundle, so no jupyter lab process is needed, only its files. ganymede lab install downloads them from PyPI's jupyterlab wheel (no Python involved) and checks its SHA-256; ganymede lab then serves the newest installed version, with your home directory as the root unless you pass --root-dir:
ganymede lab install # JupyterLab 4.6.6; --version picks another
ganymede lab # JupyterLab at /lab, opened in the browser
ganymede lab --no-browser --port 9000 # takes `serve`'s flags
ganymede serve --lab-version 4.6.6 # the same at /lab, without the browser
ganymede lab list # installed versions; --json too
ganymede lab remove 4.6.6 # fails while an install runs, as uninstall does
ganymede lab clean # leftovers of interrupted installs; skips a running one
ganymede lab uninstall # every version and extensionganymede lab prints the URL of /lab and opens it (open on macOS, xdg-open on Linux). If port 8888 is taken it tries the next, up to 50 more, as jupyter lab does. It fails, naming ganymede lab install, when no JupyterLab is installed; ganymede serve then serves only the API.
The token in the URL becomes a login cookie, and the browser is redirected to the same page without it; the cookie is what JupyterLab's websockets authenticate with. Without the token, the page sends you to /login, which asks for it. /logout ends the login.
Bundles live in ganymede/lab/<version>/ under the local data directory: ~/.local/share (or $XDG_DATA_HOME) on Linux, ~/Library/Application Support on macOS, %LOCALAPPDATA% on Windows, or $GANYMEDE_DATA_DIR/lab when that is set; ganymede info prints where. Each holds JupyterLab's static/, schemas/, themes/, and its BSD-3-Clause LICENSE. The download honours HTTPS_PROXY and the system's trusted certificates.
The bundle of a JupyterLab installed some other way works too, served at /lab with the /lab/api/* endpoints it calls:
ganymede serve --static-dir <prefix>/share/jupyter/lab/staticAny other --static-dir is served at /, behind the API: a built ganymede-ui works this way. Its HTML pages get an _xsrf cookie, as JupyterLab's page does, so an app on the login cookie can send it back as X-XSRFToken on requests that change state.
Extensions
JupyterLab loads prebuilt extensions at runtime, and packages on PyPI ship them inside their wheels. ganymede lab extension installs them the same way, without Python:
ganymede lab extension install jupyterlab-execute-time # latest; or NAME==VERSION, 'NAME>=1,<2', NAME~=1.2
ganymede lab extension list
ganymede lab extension disable jupyterlab-execute-time # and `enable`
ganymede lab extension remove jupyterlab-execute-timedisable writes labconfig/page_config.json in the Jupyter config dir, as jupyter labextension disable does, and the next page load picks it up.
ganymede lab install also installs jupyterlab_widgets and anywidget, so widgets (cdp-kernel's jupyter.widget, for one) work out of the box; --no-default-extensions skips them.
Those two are pinned to versions and wheel hashes in Ganymede's source, like JupyterLab, so a compromised release on PyPI doesn't reach a new install. --latest-extensions installs the newest releases and the extensions they depend on instead. CI's weekly run fails when PyPI has newer releases than the pins.
Only the wheel's share/jupyter/labextensions/ is unpacked, into ganymede/labextensions/ beside the bundles, which serve always searches. Dependencies are followed only as far as the frontend needs: through requirements of packages classified Framework :: Jupyter, installing those classified Framework :: Jupyter :: JupyterLab :: Extensions. So anywidget brings jupyterlab_widgets by way of ipywidgets. Each package gets the newest release its PEP 440 specifiers allow (==, !=, <, <=, >, >=, ~=, ==1.2.*), from the command line or from the Requires-Dist of the package that needs it; an installed dependency is replaced only when it no longer satisfies them. Pre-releases are picked only when a specifier names one or nothing else matches, and yanked releases never are, even when pinned. A wheel must be py3-none-any: a package that is installed gets the newest allowed release that has one, which can be older than the newest release, or a pre-release when only a pre-release has one (a note: line says so). --no-deps installs only the named packages. Server extensions, the Python half of some packages, don't run.
A package can't replace an extension another package installed unless the command has --force, and the install fails on an extension whose directory name is not an npm package name (name or @scope/name, not starting with . or _).
What a download trusts
An extension is JavaScript that JupyterLab runs on the server's origin, so it can do anything you can from the browser: read and write files, start kernels, and run code in them. Install only packages whose publishers you trust. The same holds for JupyterLab itself.
Downloads are HTTPS only, from pypi.org's JSON API and wheels on files.pythonhosted.org. A redirect must land on one of those hosts too. Each wheel's SHA-256 is checked against the value PyPI lists next to its URL. That catches a corrupted or truncated download. It doesn't catch a malicious release, which would come with a matching hash; only the hashes of the default JupyterLab version and default extensions are also pinned in the binary. ganymede prints each wheel's URL and SHA-256 before installing it.
Downloads have timeouts and are capped at 256 MB. A wheel can unpack to at most 100,000 entries, 256 MB per file and 1 GB in all.
To use a mirror of PyPI's JSON API, set GANYMEDE_PYPI_URL (for example https://mirror.example/pypi). Wheels may then come from the mirror's host as well. GANYMEDE_PYPI_HOSTS adds more allowed hosts, separated by commas.
Extension Manager
JupyterLab's Extension Manager panel lists the installed prebuilt extensions and whether each is enabled, from GET /lab/api/extensions. It is read-only, as JupyterLab's own read-only manager is: searching finds nothing, and its install, uninstall, enable, and disable buttons get an error that points at ganymede lab extension.
Other extension directories
Extensions installed some other way are found in labextensions under the Jupyter data directories or with --labextensions-path, which is searched first.
Export
File > Save and Export Notebook As offers nbconvert's script, markdown and html formats, built in Rust from the notebook alone:
- Executable Script: the code cells, and raw cells with no MIME type, separated by blank lines. The file extension and MIME type come from the notebook's
metadata.language_info(file_extension,mimetype), or.txtwithout them. Markdown cells are left out, since turning them into comments needs the language's syntax. - Markdown: markdown cells as they are; code cells as fenced blocks tagged with
language_info.name; text outputs and tracebacks as plain fenced blocks; HTML, LaTeX and Markdown outputs inline. Images and cell attachments go in<name>_files/, and the download is then a zip of the.mdfile and that folder, as nbconvert's. - HTML: one self-contained page to read and share, in Ganymede's own design rather than nbconvert's templates; see Publishing a notebook. The server root's path, the home directory and a token of 8 characters or more are replaced wherever they appear.
The exports are GET /nbconvert/{format}/{path}, with ?download=true for a download, and /api/nbconvert lists the formats. PDF, LaTeX, and slides need nbconvert's Python templates and aren't offered.
The HTML page takes ganymede nb publish's options as query parameters, so a client such as the apps can publish without the CLI: code=folded|shown|hidden, byline=<text> for the line under the title, and copy=true for the redacted notebook copy and its Download notebook button. Without them the page is the default one (code folded, no byline, no copy). Values are case-insensitive and an empty one counts as absent; any other code or copy value is a 400. Script and Markdown exports ignore the options. The redactions (server root, home directory, token) are the same with any options; the byline is the client's own text, so it is escaped but not redacted. The page is served with sandbox allow-scripts allow-downloads, so its Download notebook button works opened from the server. The page names its code mode in <meta name="ganymede-code" content="...">, so a client can tell a server that ignored the options (0.10.0 and older) from one that took them. For example, /nbconvert/html/report.ipynb?code=hidden&byline=13%20November%202026.
Terminals
JupyterLab's Terminal launcher works: Ganymede serves /api/terminals and reports terminalsAvailable in the page config. The terminal runs your login shell. Set terminals_enabled = false to turn terminals off; see Open a terminal.
Language servers
With the jupyterlab-lsp extension, JupyterLab gets diagnostics, go to definition, hover, rename, and completion from language servers, in notebooks and in the file editor. Ganymede serves the endpoints its Python server extension, jupyter-lsp, provides (/lsp/status and /lsp/ws/<name>), and runs the language servers you configure. It finds none on its own: each one is a [language_servers.<name>] table in the config file, in jupyter-lsp's spec format.
ganymede lab extension install jupyterlab-lsp
npm install -g typescript-language-server typescript@5 pyright[language_servers.typescript-language-server]
argv = ["typescript-language-server", "--stdio"]
languages = ["typescript", "javascript"]
mime_types = ["text/x.typescript", "application/typescript", "text/javascript"]
display_name = "TypeScript"
[language_servers.pyright]
argv = ["pyright-langserver", "--stdio"]
languages = ["python"]
mime_types = ["text/x-python", "text/x-ipython"]| Key | Meaning |
|---|---|
argv | The command. It must speak LSP on stdin and stdout. Required; empty turns the server off. |
languages, mime_types | What the frontend matches a document against to pick a server. cdp-kernel's notebooks are application/typescript (since cdp-kernel 0.8.0). |
display_name | Shown in JupyterLab. |
env | Added to the server's environment. $VAR and ${VAR} are replaced from Ganymede's environment. |
requires_documents_on_disk | Default true: notebooks are written to .virtual_documents/ under the root dir before the server sees them, for servers that read files themselves. Set false for servers that work from memory. |
Other jupyter-lsp keys (workspace_configuration, config_schema, urls, ...) are passed to the frontend as they are. A server starts when the first editor connects to it and stops when the last one disconnects; every editor shares the one process. Its stderr goes to Ganymede's. When several editors have one document open (two tabs on a notebook), the server gets the document once. Tabs that share edits, through collaboration, send each edit once; tabs that don't send different texts, and the server has the one changed last. Each editor gets the answers to its own requests (hover, completion) and not another tab's, diagnostics go to every editor, and a question from the server (its configuration) is put to one editor.
A request about a document from a tab whose text the server doesn't have (hover or completion in one of two tabs that don't share edits) first gives the server that tab's text, so the answer's positions fit the tab that asked. A request that follows up on an answer without naming the document (resolving a completion item or code action) counts as one about the document of the request that returned the item: the relay marks each item's data with it on the way to the editor and removes the mark on the way back. A call or type hierarchy request counts as one about the document its item names. The server then keeps that text: diagnostics, which go to every editor, follow it until another tab edits, and a request from the other tab still being answered may come back against it.
typescript-language-server needs TypeScript 5: TypeScript 7 has no tsserver.js. For TypeScript notebooks on cdp-kernel (0.8.0 and later, which reports application/typescript), jupyterlab-lsp 5.3 attaches when typescript-language-server is configured, alongside the kernel's own completion and hover; .ts files in the file editor and Python notebooks work too. There are no language servers on iOS, where an app cannot start processes, or in multi-root mode (mounts), where the virtual root / has no single filesystem path for .virtual_documents or rootUri (Known gaps).
What isn't there
JupyterLab server extensions are Python and are not implemented. nbconvert's Python template exports (custom HTML templates, PDF, LaTeX, slides) aren't offered; script, Markdown, and Ganymede's self-contained HTML page are (Export).
Other clients
Other Jupyter clients covers mobile, desktop, editor, embeddable, and headless clients, and which of them should work.