Skip to content

Support jumping to specific notebook cell via reference (e.g., file.ipynb:cell 38:13:5) #16548

@mthiboust

Description

@mthiboust

I’d like to request a feature to jump directly to a specific cell in a Jupyter notebook when clicking a reference like path/to/notebook/file.ipynb:cell 38:13:5 in VS Code, similar to how path/to/file.py:123 navigates to a line in a Python file.

Use Case:
When formating/linting notebooks, I receive references in the format file.ipynb:cell X:Y:Z (from ruff in my case), where X is the cell number, and Y:Z are line/column positions within the cell. Currently, I can open the notebook by clicking the file path, but I must manually navigate to the cell, which is time-consuming for notebooks with many cells.

Proposed Feature:
Enable Ctrl+click (or similar) on a reference like file.ipynb:cell 38:13:5 to:

  • Open the notebook if not already open.
  • Jump to cell 38 (1-based indexing).
  • Optionally, focus on line 13, column 5 within the cell’s content, if feasible.

Support this in the editor, terminal, or other clickable contexts (e.g., Output panel).

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitytriage-neededIssue needs to be triaged

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions