An opinionated JupyterLab meta-package for coding agents.
xtralab installs JupyterLab with a set of extensions and defaults for work
with terminal coding agents: an agent launcher, side-by-side git diffs for
text files and notebooks, prompts about selected code, and a Model Context
Protocol server that lets agents drive the app. It builds on
ajlab, the agent-ready JupyterLab base.
See the documentation for the installation, a getting started tutorial, the features, and the desktop app.
Install from PyPI with pip:
pip install xtralab
xtralabOr create an environment with the conda-forge package:
conda create -n xtralab -c conda-forge xtralab
conda activate xtralab
xtralabTo run xtralab in any folder using a temporary environment, use Pixi:
pixi exec --channel conda-forge xtralabOr use uv:
uvx xtralabThe installation docs also show how to install xtralab as a uv tool, add it to a Pixi or uv project, and upgrade it.
To run xtralab in the browser, with no server, build a
JupyterLite site with
xtralite:
pip install xtralite
jupyter lite buildSee the JupyterLite docs.
The desktop app (DMG on macOS, AppImage on Linux) is on the releases page. It includes its own Python runtime. See the desktop app docs.
Start any coding agent installed on your machine, with an optional first prompt. The Changes list opens the diff of each changed file. Read more.
Review changes side by side, for text files and for notebooks, and edit the working copy in the diff. Read more.
Select code, type an instruction, and send it to a new or running agent. The prompt includes the file path, the line range, and the selected code. Read more.
Search files and commands, or send a prompt to an agent, from one search box (Cmd/Ctrl+K). Read more.
See the agent in each terminal and its latest line of output. Read more.
xtralab runs a Model Context Protocol server inside JupyterLab,
provided by jupyter-server-mcp, so an agent can open files, run
cells, and read notebooks. For Claude Code, the xtralab plugin registers the
server and installs the agent skills. It starts the proxy with uv:
claude plugin marketplace add jtpio/xtralab
claude plugin install xtralab@xtralabWithout uv, or for another agent, register the bundled proxy from a terminal inside xtralab:
claude mcp add jupyter -- jupyter-server-mcp-proxyThe launcher shows this command for each installed agent. See the MCP docs for Codex, GitHub Copilot, and other agents.
xtralite brings the xtralab extensions and defaults to
JupyterLite. The launcher, the omnibox, and the ask-agent prompt send a prompt
to Pi in the
JupyterLite terminal, or to the Pi and Jupyternaut personas of
Jupyter AI Lite in a chat. The ask-agent
prompt can also send to a chat that is open. The features that need a server
(git, language servers, search and replace in files, MCP) are off.
Try it in your browser.
See CONTRIBUTING.md for the development setup, the
layout of the repository, the desktop app architecture, and the documentation
sources in docs/.
BSD-3-Clause