jupyterlab-cell-navigation-rail
An opt-in, compact left-margin Cell Navigation Rail for JupyterLab 4 and Jupyter Notebook 7.
Try it online with Binder in JupyterLab or Jupyter Notebook 7.
Each cell in the notebook is represented by a uniform horizontal bar in a fixed-height rail on the left edge, inspired by margin bookmark indicators in ePub readers and compact overview rails. Hovering a bar previews the cell (code, Markdown, or error traceback) with native Jupyter typography, and clicking jumps straight to that cell.
Motivation
Navigating long notebooks to revisit a cell or spot failed runs usually means scrolling through the document or opening a side panel. Existing tools solve adjacent problems:
- Table of Contents requires Markdown headings and opens a sidebar.
- Show Minimap (
View -> Appearance -> Show Minimap) shows a scrollable strip of scaled cell source previews along the right scrollbar.
Cell Navigation Rail focuses on a minimal, fixed-height glanceable margin rail:
- Opt-in by default (
default: false): Disabled until enabled in the View menu or Settings. - Uniform horizontal bars (
12px x 2px, expanding subtly on hover): Neutral for idle cells, brand blue for the active cell, pulsing warning accent while running, and red when a cell output contains an error. - Hover preview cards: Shows cell prompt, type, position (
2 / 5), truncated code/Markdown lines, remaining line count, and error tracebacks with a status-colored accent border using native--jp-*tokens. - One-click jump: Selecting any bar scrolls to and focuses that cell.
- Works in JupyterLab 4 and Jupyter Notebook 7.
Screenshots
Light Theme — View Menu & Error Preview
Dark Theme & Native Token Adaptation
Comparison with Built-in Minimap
Cell Navigation Rail (compact fixed-height bars + hover preview on the left) alongside JupyterLab's scrollable code Minimap (on the right):
Jupyter Notebook 7
Requirements
- Python >= 3.10
- JupyterLab >= 4.0.0 (or Jupyter Notebook >= 7.0.0)
Install
Install from PyPI:
pip install jupyterlab-cell-navigation-rail
You can also search for jupyterlab-cell-navigation-rail in JupyterLab’s built-in Extension Manager.
Usage
Toggle the rail from:
- View -> Show Cell Navigation Rail
- Command Palette: Show Cell Navigation Rail
- Settings Editor: Cell Navigation Rail -> Show cell navigation rail
Development install
git clone https://github.com/saitejagirada/jupyterlab-cell-navigation-rail.git
cd jupyterlab-cell-navigation-rail
pip install -e .
jupyter labextension develop . --overwrite
Rebuild TypeScript and run checks:
jlpm
jlpm run lint:check
jlpm run test
jlpm build
Uninstall
pip uninstall jupyterlab-cell-navigation-rail
Metadata
Release files for jupyterlab-cell-navigation-rail 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jupyterlab_cell_navigation_rail-0.1.3.tar.gz | 147.3 kB | With provenance | Details for jupyterlab_cell_navigation_rail-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jupyterlab_cell_navigation_rail-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for jupyterlab_cell_navigation_rail-0.1.3-py3-none-any.whl |
Total release size: 172.2 kB
Security for jupyterlab-cell-navigation-rail 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.