Notebook Intelligence
by notebook-intelligence
Notebook Intelligence (NBI) is an AI coding assistant and extensible AI framework for JupyterLab. It boosts productivity by providing AI assistance through GitHub Copilot or other LLM Providers, including local models.
Last updated: N/A
What is Notebook Intelligence?
Notebook Intelligence (NBI) is an AI coding assistant and extensible AI framework designed to enhance the productivity of JupyterLab users. It integrates with various LLM providers, including GitHub Copilot and local models like Ollama, to provide AI-powered code generation, auto-completion, and chat functionalities.
How to use Notebook Intelligence?
Install NBI using pip install notebook-intelligence
and restart JupyterLab. Configure your LLM provider and model in the Notebook Intelligence Settings dialog. Use inline chat with Ctrl + G
/ Cmd + G
, accept suggestions with Ctrl + Enter
/ Cmd + Enter
, and leverage auto-complete by pressing Tab
. You can also use the chat interface for more complex queries. Configure Model Context Protocol to integrate with external tools.
Key features of Notebook Intelligence
Code generation with inline chat
Auto-complete suggestions
Chat interface
Support for multiple LLM providers (including GitHub Copilot and Ollama)
Model Context Protocol (MCP) integration
Configuration options for LLM providers and models
Remembering GitHub Copilot login
Customizable MCP server configurations
Use cases of Notebook Intelligence
Accelerated code development in JupyterLab
AI-assisted code generation and completion
Integration with external tools via MCP
Prototyping and experimentation with AI models
Building AI extensions for JupyterLab
Building AI Agents for JupyterLab
FAQ from Notebook Intelligence
How do I install Notebook Intelligence?
How do I install Notebook Intelligence?
Run pip install notebook-intelligence
and restart JupyterLab.
How do I configure the LLM provider?
How do I configure the LLM provider?
Use the Notebook Intelligence Settings dialog (JupyterLab Settings menu -> Notebook Intelligence Settings).
How do I use inline chat?
How do I use inline chat?
Use the sparkle icon on the cell toolbar or the keyboard shortcuts Ctrl + G
/ Cmd + G
.
How do I configure MCP servers?
How do I configure MCP servers?
Edit the nbi-config.json
file in ~/.jupyter/
to add your MCP server configurations under the 'mcp' key.
Where are the configuration files stored?
Where are the configuration files stored?
Configuration files are stored at ~/.jupyter/nbi-config.json
for user-specific settings and <env-prefix>/share/jupyter/nbi-config.json
for environment-wide settings.