{"id":5645,"library":"jupyter-highlight-selected-word","title":"Jupyter Highlight Selected Word","description":"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.","status":"maintenance","version":"0.2.0","language":"en","source_language":"en","source_url":"https://github.com/jcb91/jupyter_highlight_selected_word.git","tags":["jupyter","notebook","extension","highlighting","code-editor"],"install":[{"cmd":"pip install jupyter_highlight_selected_word","lang":"bash","label":"Install with pip"},{"cmd":"conda install -c conda-forge jupyter_highlight_selected_word","lang":"bash","label":"Install with conda"}],"dependencies":[{"reason":"Required for Jupyter notebook environment.","package":"jupyter_core","optional":false},{"reason":"Provides a convenient UI for configuring Jupyter nbextensions, though not strictly required for the extension to function after initial enablement.","package":"jupyter_nbextensions_configurator","optional":true}],"imports":[{"note":"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.","symbol":"nbextension_enablement","correct":"jupyter nbextension install --py jupyter_highlight_selected_word --user\njupyter nbextension enable jupyter_highlight_selected_word/main"}],"quickstart":{"code":"# Install the Python package\npip install jupyter_highlight_selected_word\n\n# Install the nbextension's JavaScript and CSS files\njupyter nbextension install --py jupyter_highlight_selected_word --user\n\n# Enable the extension so it loads in your notebooks\njupyter nbextension enable jupyter_highlight_selected_word/main\n\n# To verify installation (optional, might require jupyter_nbextensions_configurator)\n# jupyter nbextension list # Look for 'jupyter_highlight_selected_word/main  - enabled'","lang":"bash","description":"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)."},"warnings":[{"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.","message":"The `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.","severity":"breaking","affected_versions":"Jupyter Notebook 7+, JupyterLab (all versions)"},{"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.","message":"There are reports of incompatibility with Python 3.11 and potentially newer Python versions, which might prevent the extension from installing or functioning correctly.","severity":"breaking","affected_versions":"Python 3.11+"},{"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.","message":"The 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.","severity":"deprecated","affected_versions":"0.2.0 and earlier"},{"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.","message":"When 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.","severity":"gotcha","affected_versions":"All versions"},{"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`.","message":"Some users have reported issues with highlighting getting 'stuck' or erratic selection behavior in Jupyter Notebook cells, particularly when using the VS Code Jupyter extension.","severity":"gotcha","affected_versions":"All versions, specifically within VS Code's Jupyter integration"}],"env_vars":null,"last_verified":"2026-04-13T00:00:00.000Z","next_check":"2026-07-12T00:00:00.000Z"}