我是靠谱客的博主 勤劳老鼠,这篇文章主要介绍jupyter notebook 代码自动补全、代码高亮一、安装依赖项二、设置 jupyter notebook,现在分享给大家,希望可以做个参考。

一、安装依赖项

        在开始中打开:开始 > Anaconda Prompt

        1.  安装 nbextensions

复制代码
1
2
pip install jupyter_contrib_nbextensions -i https://pypi.mirrors.ustc.edu.cn/simple jupyter contrib nbextension install --user

        2. 安装 nbextensions_configurator

复制代码
1
2
pip install jupyter_nbextensions_configurator jupyter nbextensions_configurator enable --user

        如果提示缺少依赖,就使用 pip 安装对应依赖即可。

二、设置 jupyter notebook

        重启 jupyter notebook,在弹出的主页面里,能看到增加了一个 Nbextensions 标签页,在这个页面里,勾选 Hinterland 即启用了代码自动补全。

        此时就有可以使用了。

        勾选它可以实现选中代码高亮

         在这儿改高亮颜色。

最后

以上就是勤劳老鼠最近收集整理的关于jupyter notebook 代码自动补全、代码高亮一、安装依赖项二、设置 jupyter notebook的全部内容,更多相关jupyter内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(58)

评论列表共有 0 条评论

立即
投稿
返回
顶部