1. 安装
pip install jupyter
2. 生成配置文件。生成的配置文件位于 ~/.jupyter/jupyter_notebook_config.py
jupyter notebook --generate-config
3. 修改配置文件
## 用于笔记本和内核的目录。
c.NotebookApp.notebook_dir = '/stock/jupyter'
4. 启动jupyter
jupyter notebook > ~/.jupyter/jupyter_notebook.log 2>&1 &