问题描述
当我在 jupyter notebook markdown 字段中写一些东西时,错别字没有突出显示,而且我经常得到这样的结果:
到目前为止,在我使用过的几乎所有 IDE 中,错别字都用卷曲下划线突出显示,这对我来说非常方便.像这样:
到目前为止,我还没有发现任何可以让我看到这种类型的亮点的东西.存在吗?
流行的 Jupyter Notebook 包
现在,在浏览器中,打开 Jupyter 后,您将在键盘按钮旁边看到标有abc"的按钮,您可以切换以启用/禁用拼写检查:
jupyter-contrib 库有许多其他有用的模块,例如 代码折叠 和目录.
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 IDEs I have used so far, the typos are highlighted with a curly underline which was very convenient for me. Something like this:
Up till now I have not found anything that allows me to see this type of highlights. Does it exist?
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.
这篇关于突出显示 jupyter notebook markdown 中的错别字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!