如常配置python 和 jupyter notebook
但在启动jupyter notebook 报错: OSError: [Errno 99]Cannot assign requested address
Solution:
1、生成配置文件(~/.jupyter/jupyter_notebook_config.py)
jupyter notebook --generate-config
2、生成密钥
jupyter notebook password # 自己造一个密码输入一确认一次
vim ~/.jupyter/jupyter_notebook_config.json
记下密钥,例如:sha1:03c74e2b144e:7…
3、编辑配置文件
vim ~/.jupyter/jupyter_notebook_config.py
修改以下几项
c.NotebookApp.ip='*' # 就是设置所有ip皆可访问
c.NotebookApp.password = 'sha1:03c74e2b144e:7…' # 刚才复制的那个密文'
c.NotebookApp.open_browser = False # 禁止自动打开浏览器
c.NotebookApp.port =8888 #随便指定一个端口
4、启动jupyter notebook