jupyter如何安裝自動代碼補全提示
進入環(huán)境的終端terminal
安裝nbextensions
pip install jupyter_contrib_nbextensions -i https://pypi.mirrors.ustc.edu.cn/simple jupyter contrib nbextension install --user
安裝nbextensions_configurator
pip install --user jupyter_nbextensions_configurator jupyter nbextensions_configurator enable --user
設(shè)置jupyter
重新打開jupyter,上面會多了一行Nbextensions,點進去找到Hinterland,勾選后盡可以使用了。
打開文件即可使用!
jupyter代碼自動補全插件、安裝后出現(xiàn)警告Config option `template_path` not recognized by `LenvsLatexExporter`
如果下面的所有命令都提示Not found,則需要配置好Anaconda和python的環(huán)境變量
安裝nbextensions
pip install jupyter_contrib_nbextensions -i https://pypi.mirrors.ustc.edu.cn/simple
這里-i
指定了下載源,不然是從國外的官網(wǎng)下載,速度很慢!
jupyter contrib nbextension install --user
安裝nbextensions_configurator
pip install --user jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable --user
如果安裝失敗了,或者之前裝過,就先卸載,然后重新安裝
pip uninstall jupyter_contrib_nbextensionspip uninstall jupyter_nbextensions_configurator
安裝后啟動Jupyter,cmd窗口出現(xiàn)很多行如:
Config option `template_path` not recognized by `LenvsLatexExporter`
- 原因是nbconvert6.0.0版本以上的某些參數(shù)的名稱發(fā)生了更改,與原先版本不兼容,需要將版本降低到5.6.1
- 如果使用如下命令,則會報錯找不到這個模塊,我靈機一動,直接去官網(wǎng)找下載
conda install "nbconvert=5.6.1"
pip install nbconvert==5.6.1 -i https://pypi.mirrors.ustc.edu.cn/simple
- 同樣指定國內(nèi)的下載源
- 下載成功!警告消失!
總結(jié)
以上為個人經(jīng)驗,希望能給大家一個參考,也希望大家多多支持腳本之家。
相關(guān)文章
Python實現(xiàn)識別手寫數(shù)字 Python圖片讀入與處理
這篇文章主要為大家詳細介紹了Python實現(xiàn)識別手寫數(shù)字,Python圖片的讀入與處理,具有一定的參考價值,感興趣的小伙伴們可以參考一下2018-01-01Python讀取和寫入txt、Excel文件和JSON文件的方法
Python 提供了多種方法來讀取和寫入不同類型的文件,包括文本文件(txt)、Excel 文件和 JSON 文件,本文給大家介紹了一些常用的方法和示例代碼,對大家的學(xué)習(xí)或工作有一定的幫助,需要的朋友可以參考下2024-07-07