jupyter
生成配置文件
jupyter notebook --generate-config生成密钥
jupyter notebook password
# 设置密码:123456如下地址
/root/.jupyter/jupyter_notebook_config.json
# 生成密钥如下:
sha1:23524a335a85:461a1f37e8e32af1ab8899329b3e41c41ea6e546
修改配置文件
最后更新于
jupyter notebook --generate-configjupyter notebook password
# 设置密码:123456/root/.jupyter/jupyter_notebook_config.json
# 生成密钥如下:
sha1:23524a335a85:461a1f37e8e32af1ab8899329b3e41c41ea6e546
最后更新于
vi /root/.jupyter/jupyter_notebook_config.py# 允许 作为root访问
c.NotebookApp.allow_root = True
# 允许访问的主机ip * 随意访问
c.NotebookApp.ip='*'
# 密钥:/root/.jupyter/jupyter_notebook_config.json 文件的内容
c.NotebookApp.password = u'sha1:03... '
# 修改工作目录
c.NotebookApp.notebook_dir='filepath'