Get Started#
Jupyter AI offers several ways to work with AI agents in Jupyter. Pick the one that matches how you work. Each one takes a few minutes to set up, and the user guide compares them in detail. If you are not sure where to start, begin with what you want to accomplish.
Use your coding agent with JupyterLab#
For people who already use Claude Code, Codex, GitHub Copilot CLI, Gemini CLI, OpenCode, or another coding agent. The agent runs in a terminal, and connects to JupyterLab to open files, run notebook cells, and drive the interface.
Install JupyterLab with the extensions for agents, and start it in your project folder:
pip install jupyter-ai-core jupyter lab
Open a terminal in JupyterLab (File → New → Terminal), and register the Jupyter MCP server with your agent:
claude mcp add --scope user jupyter -- jupyter-server-mcp-proxycodex mcp add jupyter -- jupyter-server-mcp-proxyAdd a stdio MCP server named
jupyter, with the commandjupyter-server-mcp-proxy. See Connect your agent.Start the agent in the same terminal, and ask it to work in JupyterLab:
Create a notebook that loads
data.csvand plots it, then run all its cells.
Continue with Terminal coding agents.
Chat with agents in JupyterLab#
For people who want a chat panel in JupyterLab, where they can use several agents, approve their actions, and share chats with others.
Install Jupyter AI:
pip install jupyter-aiInstall at least one agent, such as Claude Code or Codex CLI, and its ACP adapter if it needs one. The agent chat guide lists them.
Start JupyterLab, and open a chat from the Chat card in the launcher:
jupyter lab
Continue with Agent chat.
Run an assistant in the browser#
For JupyterLite deployments, Jupyter Notebook users, and anyone who wants a setup with only an API key. Jupyternaut runs in the browser tab and calls the model provider directly.
Install the extension:
pip install jupyter-ai-liteStart JupyterLab or Jupyter Notebook, open Settings → Jupyternaut Settings, and add a model provider with your API key.
Create a chat, select Jupyternaut in its input toolbar, and start a conversation.
You can also try it in the online demo. Continue with Jupyternaut in the browser.
Prompt a model from a notebook cell#
For people who want to call a model from code cells with %%ai.
pip install jupyter-ai-magic-commands
Then, in a notebook:
%load_ext jupyter_ai_magic_commands
Continue with Magic commands.