Skip to main content

Jupyter notebook extension that enables highighting of every instance of the current word in the editor.

Project description

Enables the CodeMirror addon “[Match Highlighter](https://codemirror.net/demo/matchhighlighter.html)”, which highlights all instances of the selected word in the current editor.

There are a few configurable options, all of which sit under the config key highlight_selected_word in the notebook config section.

Parameters

  • highlight_selected_word.code_cells_only - Only apply highlights to editors for Code cells, not, for example, Markdown or Raw cells

  • highlight_selected_word.highlight_color - Color to highlight matching words

  • highlight_selected_word.delay - Wait time (in milliseconds) before highlighting the matches

  • highlight_selected_word.words_only - If true, only highlight matches if the selected text is a word

  • highlight_selected_word.min_chars - Minimum number of characters that must be selected for the highlighting behavior to occur

  • highlight_selected_word.show_token - Token (regex) to highlight when nothing is selected

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jupyter_highlight_selected_word-0.0.1.tar.gz (4.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page