美文网首页
工作站配置jupyter,本地浏览器访问

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

作者: 脏脏包盛 | 来源:发表于2018-11-20 10:43 被阅读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

相关文章

网友评论

      本文标题:工作站配置jupyter,本地浏览器访问

      本文链接:https://www.haomeiwen.com/subject/auetqqtx.html