Jupyter Highlight Selected Word

0.2.0 · maintenance · verified Mon Apr 13

Jupyter Highlight Selected Word is a Jupyter notebook extension that highlights all instances of the currently-selected or cursor-adjacent word within the notebook. It enhances code readability and navigation by visually emphasizing matching terms across cells or within the current cell. The latest version is 0.2.0, released in 2018, indicating a very slow or halted release cadence and potentially limited compatibility with newer Jupyter and Python environments.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to install the Python package and then enable the Jupyter nbextension. After these steps, the highlighting functionality should be available in your Jupyter Notebooks. The `--user` flag installs into the user's Jupyter data directory. For system-wide installation, remove `--user` (requires appropriate permissions).

# Install the Python package
pip install jupyter_highlight_selected_word

# Install the nbextension's JavaScript and CSS files
jupyter nbextension install --py jupyter_highlight_selected_word --user

# Enable the extension so it loads in your notebooks
jupyter nbextension enable jupyter_highlight_selected_word/main

# To verify installation (optional, might require jupyter_nbextensions_configurator)
# jupyter nbextension list # Look for 'jupyter_highlight_selected_word/main  - enabled'

view raw JSON →