Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mthiboust opened this issue Apr 14, 2025 · 2 comments
Assignees
Labels
feature-request Request for new features or functionality triage-needed Issue needs to be triaged

Comments

@mthiboust
Copy link

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).

@mthiboust mthiboust added the feature-request Request for new features or functionality label Apr 14, 2025
@vs-code-engineering vs-code-engineering bot added this to the Backlog Candidates milestone Apr 14, 2025
@vs-code-engineering vs-code-engineering bot added the triage-needed Issue needs to be triaged label Apr 14, 2025
@thisiswhereitype
Copy link

I often think about this and would use it - I think in the past I noticed that some tools index only code cells

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Apr 22, 2025

For reference Fragment Identification Syntax for Jupyter (linking to cells in documents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality triage-needed Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

4 participants