AI掏粪工

ubuntu 配置 jupyter notebook 远程访问

2021-04-13  本文已影响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 &
上一篇 下一篇

猜你喜欢

热点阅读