安裝conda 默認有jupyter的
如果沒有,快速安裝方式:
#安裝
pip install notebook
# 啟動
jupyter notebook
修改默認工作目錄
首先進入~/.jupyter
如果沒有 jupyter_notebook_config.py 這個文件
在命令行下運行如下命令:
jupyter notebook --generate-config
在次進入~/.jupyter 下历谍,就有了這個文件现拒,
打開 jupyter_notebook_config.py
找到如下位置并修改
## The directory to use for notebooks and kernels.
#工作目錄為:“/Users/Mac/Documents/AdaProject/jupyter”
c.NotebookApp.notebook_dir = '/Users/Mac/Documents/AdaProject/jupyter'