一、Jupyter Notebook的安裝與啟動
安裝Jupyter Notebook
pip3 install jupyter
啟動
jupyter notebook
輸入命令后會自動彈出瀏覽器窗口打開Jupyter Notebook
本地notebook的默認URL為:http://localhost:8888
想讓notebook打開指定目錄,只要進入此目錄后執行命令即可
二、安裝jupyter_contrib_nbextensions庫
python -m pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user --skip-running-check
在其中勾選需要的功能即可
較為常見的部分功能
注意勾選 autopep8 后可能會提示找不到該模塊,此時
pip install autopep8
即可