Overview
Sphinx is built for Jupyter notebooks. It reads your notebook’s cells, understands your kernel’s state, and generates code that integrates with your existing work.Sphinx requires a Python kernel. It automatically validates your kernel selection and prompts you to select or install one if needed.
Key Capabilities
Create & Run Notebooks
Learn how Sphinx adds cells, edits code, executes cells, and understands your notebook’s current state.
Connect to Backends
Use Sphinx with Databricks, Google Colab, Azure ML, JupyterHub, and other notebook environments.
Long-Running Operations
How Sphinx handles time-consuming tasks like model training and large data processing.
How Sphinx Interacts with Notebooks
When you chat with Sphinx, it:- Reads your notebook — Sees all cells, their code, and outputs
- Extracts kernel state — Knows your variables, dataframes, imports, and installed packages
- Generates contextual code — Creates code that uses your existing variables and follows your patterns
- Executes and observes — Runs cells and learns from the results
- Iterates as needed — Fixes errors, refines visualizations, and continues until the task is complete
What Sphinx Knows About Your Notebook
| Context | Details |
|---|---|
| Cells | All code and markdown cells, including outputs |
| DataFrames | Names, shapes, column types, and sample rows |
| Variables | Variable names and types (up to 300) |
| Imports | Modules you’ve imported |
| Packages | Installed packages with versions |
| Environment | Available environment variable names |
Supported Environments
Sphinx works anywhere VS Code’s Jupyter extension works:- Local Python — Conda, venv, system Python
- Cloud Notebooks — Databricks, Google Colab, Azure ML, SageMaker
- Remote Servers — JupyterHub, remote Jupyter servers
- Containers — Docker, Dev Containers, Codespaces
Quick Start
Operation Modes
Sphinx offers three modes to match your workflow:| Mode | Description | Best For |
|---|---|---|
| Safe | Every execution requires approval | Learning, sensitive environments |
| Agent | Autonomous with guardrail checks | Everyday workflows |
| Plan | Creates a plan before executing | Complex, multi-step tasks |