plmbr/notebook-intelligence

A JupyterLab extension supporting Claude Code, Copilot, Ollama, and OpenAI-compatible LLMs, with MCP, skills, plugins, and notebook agents.

Notebook Intelligence (NBI) is a free, open-source AI assistant that plugs into JupyterLab. It adds chat, code generation, auto-complete, and an agent that can create and run notebooks for you. You can connect it to different AI providers: GitHub Copilot, any OpenAI- or LiteLLM-compatible service, local Ollama models, or Anthropic's Claude Code CLI. You pay the provider directly if they charge; NBI itself is free.

What it does

  • Chat panel: Ask questions or give instructions in plain English, with optional image attachments.
  • Inline code generation: Click a sparkle icon or press Ctrl+G to get code suggestions right in a cell.
  • Auto-complete: As you type, NBI suggests completions; press Tab to accept.
  • Agent mode: A built-in agent can create, edit, and execute notebooks interactively, even fixing errors in cells.
  • Chatbook: Turn a notebook into one where you write prompts in English; NBI generates and runs the code for you.
  • Claude mode: A special mode that uses Anthropic's Claude Code CLI for the chat panel, giving you access to Claude's tools, skills, and plugins inside JupyterLab.
  • Cell output actions: Right-click any cell output to ask about it, explain errors, or send it to chat as context.
  • Multi-language support: Works with any notebook kernel (Python, R, etc.) and respects the language of the notebook you're using.
  • Reload on disk changes: If an AI agent edits files on disk, open tabs refresh automatically (unless you have unsaved edits).

Requirements

  • Python 3.10+, JupyterLab 4.x
  • Node.js is needed for Claude mode, the experimental ACP agent mode, and some MCP servers.
  • A fresh virtual environment is recommended.

Quick start

pip install notebook-intelligence
jupyter lab

Then click the NBI icon in the left sidebar, open Settings, sign in to your provider, and start chatting.

Configuration You can set up providers, enable Claude mode, adjust permission modes (like requiring confirmation for every tool call), and control many other options through the Settings dialog or environment variables. NBI also supports Model Context Protocol (MCP) servers, rulesets (markdown files that inject coding conventions), and Claude Skills.

Safety and admin controls

  • Permission modes in Claude mode let you choose how much the agent can do without asking: Default (ask each time), Accept Edits, Plan (no changes until you approve), or Bypass Permissions (full access, but off by default and requires admin approval).
  • Admins can lock down features like Chatbook, cell output actions, and bypass permissions via environment variables.

Documentation The README links to detailed docs for troubleshooting, admin guides, and specific features like ACP mode and Chatbook.

Related

  • Project
  • Project
  • Project
  • Project
  • Project