Skip to content

Show selected matches in scrollbar for Jupyter Notebook cells #17365

@PavelKucherenko

Description

@PavelKucherenko

General feature description

In VSCode, when editing a regular .py file, selecting a variable highlights all occurrences in the editor and shows small markers on the right-side scrollbar. However, this functionality is missing in Jupyter Notebook (.ipynb) cells.

Why this feature is useful

Makes it easier to navigate large notebooks by quickly seeing where variables or functions appear.

Improves consistency with the behavior in regular Python files.

Current behavior

Selecting a variable in a notebook cell highlights matches in the cell, but no markers appear on the scrollbar.

Expected behavior

Selecting a variable should show small markers in the right-side scrollbar for all occurrences in the notebook, similar to .py files.

Additional context

This limitation is due to Jupyter Notebook using a different editor API (not standard text editor), so editor decorations like scrollbar markers are currently not supported.

Feature request: implement support for editor decorations in notebook cells to allow this behavior. Please, realize this!🙏🏻

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