工作站配置jupyter,本地浏览器访问

2018-11-20  本文已影响0人  脏脏包盛

https://blog.csdn.net/yh1226/article/details/80842345

安装jupyter notebook

生成配置文件

 notebook —generate-config

设置登录密码并生成密钥

from notebook.auth import passed
passwd()

保存确认密码后生成的密钥,后面用到

修改配置文件

cd ~/.jupyter
vim jupyter_notebook_config.py

进入vim后修改如下代码并去掉‘#’

c.NotebookApp.ip=‘*’
c.NotebookApp.password=‘上面生成的密钥’
c.NotebookApp.open_brower=False
c.NotebookApp.port=8888
c.NotebookApp.notebook_dir=‘’   # 默认生成文件保存的路径

在服务器上生成jupyter访问地址

jupyter notebook --ip=服务器ip --port=服务器端口 --allow-root
上一篇 下一篇

猜你喜欢

热点阅读