搜 索

jupyter 代码自动补全插件、安装后出现警告 “Config option `template_path` not recognized by `LenvsLatexExporter`” 的解决方案

  • 1.9k阅读
  • 2021年02月12日
  • 0评论

jupyter notebook 支持安装扩展,方法为:

pip install jupyter_contrib_nbextensions -i https://pypi.mirrors.ustc.edu.cn/simple
pip install --user jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable --user

240-1.png

安装后启动 Jupyter notebook,cmd 窗口出现很多行如:

Config option `template_path` not recognized by `LenvsLatexExporter`

原因是 nbconvert6.0.0 版本以上的某些参数的名称发生了更改,与原先版本不兼容,需要将版本降低到 5.6.1。

另外,在官方也有提到这个问题,也分析了具体的原因,参考:https://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues/1529#issuecomment-696846277

我们可以用国内源进行快速下载,原来安装有高版本也没事,会自动给你重新安装低版本的:

pip install nbconvert==5.6.1 -i https://pypi.mirrors.ustc.edu.cn/simple

安装完成后再次启动 jupyter notebook,发现这烦人的提示就不再出现啦!

文章转载自:https://blog.csdn.net/DTFT_/article/details/111242118

小胖狐做了内容排版优化。

评论区
暂无评论
avatar