0.预备工作
sudo apt update
sudo apt upgrade
1.安装jupyter notebook
sudo apt install jupyter notebook
2.配置jupyter notebook
2.1 自动创建config文件
jupyter notebook --generate-config --allow-root
2.2 打开刚才自动创建的config文件
gedit /home/your_usr_name/.jupyter/jupyter_notebook_config.py
2.3 修改默认工作路径
c.NotebookApp.notebook_dir = '/home/your_usr_name/'
注意:前面的“#”删除掉才生效
3.启动
jupyter notebook
完事儿