gpt4 book ai didi

jupyter - 突出显示 jupyter notebook markdown 中的错别字

转载 作者:行者123 更新时间:2023-12-03 08:38:43 25 4
gpt4 key购买 nike

当我在 jupyter notebook markdown 字段中写一些东西时,错别字没有突出显示,我经常会得到这样的结果:

enter image description here

到目前为止,在我使用过的几乎所有 IDE 中,错别字都用 curl 下划线突出显示,这对我来说非常方便。像这样的东西:

enter image description here

到目前为止,我还没有找到任何可以让我看到这种亮点的东西。它存在吗?

最佳答案

流行的 Jupyter 笔记本套装 extension from Jupyter-contrib包含 spell checker .您可以像这样安装和启用它(使用管理员权限):

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

这可能是 Jupyter Notebooks 最流行的拼写检查器,但请注意,它只是突出显示不在其字典中的单词,并且不提供更正。

如果扩展安装正确,您将在命令行中看到此消息:

enter image description here

现在,在浏览器中,打开 Jupyter 后,您将在键盘按钮旁边看到标有“abc”的按钮,您可以切换以启用/禁用拼写检查:

enter image description here

jupyter-contrib 库还有许多其他有用的模块,例如 code foldingtable of contents .

关于jupyter - 突出显示 jupyter notebook markdown 中的错别字,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39324039/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com