1. 安装pip3
sudo apt install python3-pip
2.安装jupyter
pip3 install jupyter
3.添加环境变量
sudo vi /etc/profile
将如下内容添加到文件末尾 export PATH=/home/xxx(这里是你自己的用户名)/.local/bin:$PATH
wq保存退出
source /etc/profile
4.运行jupyter
jupyter notebook
5.新建
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200318190115307.png)
6.然后就可以愉快的写代码啦~
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200318190313690.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQxNjU2NjM5,size_16,color_FFFFFF,t_70)
Jupyter文档