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
  • 同樣指定國內的下載源
  • 下載成功!警告消失!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM