jupyter代碼自動補全插件、安裝後出現警告“Config option `template_path` not recognized by `LenvsLatexExporter`”的解決方案

如果下面的所有命令都提示Not found,則需要配置好Anaconda和python的環境變量

1.安裝nbextensions

pip install jupyter_contrib_nbextensions -i https://pypi.mirrors.ustc.edu.cn/simple
  • 這裏-i指定了下載源,不然是從國外的官網下載,速度很慢!
jupyter contrib nbextension install --user

2.安裝nbextensions_configurator

pip install --user jupyter_nbextensions_configurator 
jupyter nbextensions_configurator enable --user

在這裏插入圖片描述

如果安裝失敗了,或者之前裝過,就先卸載,然後重新安裝

pip uninstall jupyter_contrib_nbextensions
pip uninstall jupyter_nbextensions_configurator

安裝後啓動Jupyter,cmd窗口出現很多行如:

Config option `template_path` not recognized by `LenvsLatexExporter`
  • 原因是nbconvert6.0.0版本以上的某些參數的名稱發生了更改,與原先版本不兼容,需要將版本降低到5.6.1

  • 如果使用如下命令,則會報錯找不到這個模塊,我靈機一動,直接去官網找下載

conda install "nbconvert=5.6.1"

在這裏插入圖片描述

pip install nbconvert==5.6.1 -i https://pypi.mirrors.ustc.edu.cn/simple
  • 同樣指定國內的下載源
  • 下載成功!警告消失!
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章