1 安裝
pip install --upgrade pip
pip install --upgrade ipython jupyter
2 jupyter qtconsole
jupyter qtconsole
3 jupyter notebook
jupyter notebook
3.1 查看配置文件
jupyter-notebook --generate-config
輸出即為配置文件路徑
3.2 修改默認(rèn)啟動(dòng)目錄
在配置文件中修改
## The directory to use for notebooks and kernels.
# Default: ''
c.NotebookApp.notebook_dir = 'D:\\zyss'
- 注意要取消 c.NotebookApp.notebook_dir 前的 #
3.3 修改主題
用pip 安裝jupyter-themes
pip install --upgrade jupyterthemes
查看所有可用的主題
jt -l
選擇要用的主題
// 不顯示工具欄
jt -t 主題名
// 顯示工具欄
jt -t 主題名 -T
恢復(fù)默認(rèn)
jt -r
3.4、 為 jupyter 添加目錄生成插件
terminal 端輸入:
1.pip install jupyter_contrib_nbextensions
2.jupyter contrib nbextension install --user --skip-running-check
3.jt -t oceans16 -N -T
使用主題時(shí)候加上 -N -T
3.5、支持latex公式
pip install mathjax
4 jupyter Lab
4.1 安裝
pip install jupyterlab
4.2 啟動(dòng)
jupyter-lab 或 jupyter lab