记录一下配置过程,以后用到就不用到处去找了
sha1密码
- ipython
- from notebook.auth import passwd
- passwd()
- 输两遍得到sha1加密密码
产生配置文件
- jupyter notebook --generate-config
编辑配置文件
vim ~/.jupyter/jupyter_notebook_config.py
添加配置
c.NotebookApp.port = 5000
c.NotebookApp.ip = ‘0.0.0.0’ #这里注意设置成0.0.0.0,不要甚至成 ‘*’ ,会有很多麻烦
c.NotebookApp.password = u’sha1:1cfb37301284:3642e3d3a5ba8ae9b4ed354a5e65fb4c270bf6fd’
c.NotebookApp.open_browser = False
c.NotebookApp.notebook_dir = u’/home/luoyangbiao/jupyter’
运行
nohup jupyter notebook &
参考资料
https://blog.csdn.net/simple_the_best/article/details/77005400
https://blog.csdn.net/simple_the_best/article/details/77005400