Highlight typos in the jupyter notebook markdown

后端 未结 3 821
孤街浪徒
孤街浪徒 2020-12-13 06:19

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

In almost all ID

3条回答
  •  -上瘾入骨i
    2020-12-13 06:46

    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:

    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:

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

提交回复
热议问题