安装jupyter
pip install ipython
pip install jupyter
生成jupyter配置文件
jupyter notebook –generate-config
1 | #: jupyter notebook --generate-config |
自动生成密码
jupyter notebook password
1 | #: jupyter notebook password |
获取密码
cat /home/xm/.jupyter/jupyter_notebook_config.json
1 | #: cat /home/xm/.jupyter/jupyter_notebook_config.json |
修改配置文件
vim /home/xm/.jupyter/jupyter_notebook_config.py
1 | #懒得找对应配置项的朋友,直接把这四项配置写到文件开头就可以了 |