美文网首页AI掏粪工
ubuntu 配置 jupyter notebook 远程访问

ubuntu 配置 jupyter notebook 远程访问

作者: 玖月初识 | 来源:发表于2021-04-13 15:34 被阅读0次

1. 生成配置文件jupyter_notebook_config.py

jupyter notebook --generate-config

2. 设置登录密码

jupyter notebook password

3. 修改配置文件

vim /home/devin/.jupyter/jupyter_notebook_config.py

修改如下:

# 把前面的 # 去掉
c.NotebookApp.ip = '*'    # 允许所有ip访问  
c.NotebookApp.open_browser = False    # 不打开浏览器

然后启动 jupyter notebook,在浏览器里面输入:host_ip:8888 就可以访问了。
后台启动

nohup jupyter notebook &

相关文章

网友评论

    本文标题:ubuntu 配置 jupyter notebook 远程访问

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