目录
pip install jupyter 或 pip install jupyter notebook
jupyter notebook

终端命令行输入:jupyter notebook list,查看token,使用token登录

使用上面的方法查不到token,这时就需要修改密码
①终端输入:jupyter notebook --generate-config
找到 jupyter_notebook_config.py文件进行修改,将c.NotebookApp.allow_password_change值改为False,并取消注释

②终端输入:jupyter notebook password,输入新密码

在jupyter_notebook_config.py文件同目录下会生成jupyter_notebook_config.json文件,将文件中
password的值复制下来,替换jupyter_notebook_config.py文件的c.NotebookApp.password值(取消注释并保存),重启 jupyter,输入设置的密码即可


将jupyter_notebook_config.py文件中的c.NotebookApp.token = '