Registry / jupyter-highlight-selected-word

jupyter-highlight-selected-word

JSON →
library0.2.0pypypi✓ verified 22d ago

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.

pip install jupyter_highlight_selected_word
INSTALL
IMPORT
SIG · JUPYTER-HIGHLIGHT-
J
jupyter-highlight-selected-word
pythonv0.2.0
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.2.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

nbextension_enablement
jupyter nbextension install --py jupyter_highlight_selected_word --user jupyter nbextension enable jupyter_highlight_selected_word/main
This is a Jupyter nbextension, which is enabled via Jupyter's command-line tools rather than typical Python 'import' statements. The '--user' flag installs it for the current user; other options exist for system-wide or environment-specific installs. The second command specifically enables the extension to load in notebooks.

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'
Debug
Known issues
breakingThe `jupyter_highlight_selected_word` extension is known to be incompatible with Jupyter Notebook 7 and newer versions of JupyterLab. Users upgrading their Jupyter environment may find this extension no longer functions.
fix
No direct fix available; the extension is not actively maintained for these newer Jupyter frontends. Consider alternative solutions like built-in features in JupyterLab's LSP integration or other community-maintained extensions for modern Jupyter versions.
affects: Jupyter Notebook 7+, JupyterLab (all versions)
breakingThere are reports of incompatibility with Python 3.11 and potentially newer Python versions, which might prevent the extension from installing or functioning correctly.
fix
Downgrade Python to a compatible version (e.g., Python 3.10 or earlier) if this extension is critical. Otherwise, seek alternative highlighting solutions compatible with newer Python versions.
affects: Python 3.11+
deprecatedThe project's last PyPI release was in April 2018, indicating a lack of active development and maintenance. This means it may not receive updates for compatibility with new Jupyter or Python releases, security fixes, or new features.
fix
Be aware of potential compatibility issues and lack of support. For long-term projects, consider migrating to built-in Jupyter features or more actively maintained extensions that offer similar functionality.
affects: 0.2.0 and earlier
gotchaWhen installed via `pip`, the JavaScript and CSS assets for the nbextension must also be explicitly installed and enabled using `jupyter nbextension install` and `jupyter nbextension enable` commands. Installation via `conda` from `conda-forge` is noted to handle these steps automatically.
fix
Always follow the three-step installation process (pip install, jupyter nbextension install, jupyter nbextension enable) when using pip. If using conda, ensure you install from the `conda-forge` channel for a streamlined experience.
affects: All versions
gotchaSome users have reported issues with highlighting getting 'stuck' or erratic selection behavior in Jupyter Notebook cells, particularly when using the VS Code Jupyter extension.
fix
If encountering such issues within VS Code, try disabling other extensions or re-evaluating the Jupyter environment within VS Code. This might be an interaction issue rather than a direct bug in `jupyter-highlight-selected_word`.
affects: All versions, specifically within VS Code's Jupyter integration
Upgrade
Version history
0.2.0latest on PyPI · released Apr 7, 2018
Audit
Dependencies
jupyter_corerequiredRequired for Jupyter notebook environment.
jupyter_nbextensions_configuratoroptionalProvides a convenient UI for configuring Jupyter nbextensions, though not strictly required for the extension to function after initial enablement.
Agent activity
4 hits · last 30 days
node
2
Bingbot
1
Resources
jupyter-highlight-selected-word — pip install jupyter-highlight-selected-word · libregistry