Highlight typos in the jupyter notebook markdown

Salvador Dali picture Salvador Dali · Sep 5, 2016 · Viewed 14.1k times · Source

When I write something in the jupyter notebook markdown field, the typos are not highlighted and often I ended up with something like this:

enter image description here

In almost all IDEs I have used so far, the typos are highlighted with a curly underline which was very convenient for me. Something like this:

enter image description here

Up till now I have not found anything that allows me to see this type of highlights. Does it exist?

Answer

Maged Saeed picture Maged Saeed · Feb 9, 2018

The popular Jupyter Notebook bundle extension from Jupyter-contrib contains a spell checker. You can install and enable this (with admin privileges) like so:

pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
jupyter nbextension enable spellchecker/main

This may be the most popular spell checker for Jupyter Notebooks, but note that it simply highlights words not in its dictionary, and does not offer corrections.

If the extension installed properly, you will see this message in the command line:

enter image description here

Now, in the browser, after opening Jupyter, you will see the button labelled "abc" beside the keyboard button, which you can toggle to enable/disable spell check:

enter image description here

The jupyter-contrib library has many other useful modules such as code folding and table of contents.