jupyter如何安裝自動代碼補全提示
更新時間:2024年06月28日 11:34:50 作者:cy.十三
這篇文章主要介紹了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
設置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指定了下載源,不然是從國外的官網下載,速度很慢!
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
- 如果使用如下命令,則會報錯找不到這個模塊,我靈機一動,直接去官網找下載
conda install "nbconvert=5.6.1"

pip install nbconvert==5.6.1 -i https://pypi.mirrors.ustc.edu.cn/simple
- 同樣指定國內的下載源
- 下載成功!警告消失!
總結
以上為個人經驗,希望能給大家一個參考,也希望大家多多支持腳本之家。
相關文章
Python連接數(shù)據(jù)庫使用matplotlib畫柱形圖
這篇文章主要介紹了Python連接數(shù)據(jù)庫使用matplotlib畫柱形圖,文章通過實例展開對主題的相關介紹。具有一定的知識參考價值性,感興趣的小伙伴可以參考一下2022-06-06
Python3實現(xiàn)的簡單工資管理系統(tǒng)示例
這篇文章主要介紹了Python3實現(xiàn)的簡單工資管理系統(tǒng),涉及Python文件讀寫、數(shù)據(jù)遍歷、判斷等相關操作技巧,需要的朋友可以參考下2019-03-03
解決python3 整數(shù)數(shù)組轉bytes的效率問題
這篇文章主要介紹了解決python3 整數(shù)數(shù)組轉bytes的效率問題,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧2021-03-03

