Skip to content
jtpioPublic

About

Agent-ready JupyterLab with opinionated extras

Resources

Contributing

Stars

23 stars

Watchers

1 watching

Forks

Repository files navigation

xtralab

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.

The xtralab workspace: file browser, agent launcher, a side-by-side git diff, and a running Claude Code session

See the documentation for the installation, a getting started tutorial, the features, and the desktop app.

Install

Install from PyPI with pip:

pip install xtralab
xtralab

Or create an environment with the conda-forge package:

conda create -n xtralab -c conda-forge xtralab
conda activate xtralab
xtralab

To run xtralab in any folder using a temporary environment, use Pixi:

pixi exec --channel conda-forge xtralab

Or use uv:

uvx xtralab

The 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 build

See 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.

Highlights

Agent launcher

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.

The launcher: a prompt box, one button per installed agent, the Open section, and the list of changed files

Git diffs

Review changes side by side, for text files and for notebooks, and edit the working copy in the diff. Read more.

A side-by-side diff of a Python file, with removed lines on the left and added lines on the right

Ask an agent

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.

The prompt box below a selected function, with an instruction and one button per agent

Omnibox

Search files and commands, or send a prompt to an agent, from one search box (Cmd/Ctrl+K). Read more.

The omnibox with matching commands, a matching file, and one Ask row per agent

Terminals panel

See the agent in each terminal and its latest line of output. Read more.

The Terminals panel with three agent sessions and their latest output

Connecting agents to JupyterLab (MCP)

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@xtralab

Without uv, or for another agent, register the bundled proxy from a terminal inside xtralab:

claude mcp add jupyter -- jupyter-server-mcp-proxy

The launcher shows this command for each installed agent. See the MCP docs for Codex, GitHub Copilot, and other agents.

JupyterLite

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.

Contributing

See CONTRIBUTING.md for the development setup, the layout of the repository, the desktop app architecture, and the documentation sources in docs/.

License

BSD-3-Clause

About

Agent-ready JupyterLab with opinionated extras

Resources

Contributing

Stars

23 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages