远程访问ubuntu服务器上的Jupyter

使用需求:实验室更换服务器,重新配置

1、在服务器段设置配置文件

$jupyter notebook --generate-config

2、生成Jupyter的密钥留作后用

In [1]: from notebook.auth import passwd
In [2]: passwd()
Enter password: 
Verify password: 
Out[2]: 'sha1:ce23d945972f:34769685a7ccd3d08c84a18c63968a41f1140274'

3、生成修改配置文件

sudo nano ~/.jupyter/jupyter_notebook_config.py

如下的修改:

c.NotebookApp.allow_remote_access = True
c.NotebookApp.ip = '*'
c.NotebookApp.notebook_dir = '/home/lcx/Jupyter'
c.NotebookApp.open_browser = False
c.NotebookApp.password = 'argon2:*********'
c.NotebookApp.port = 8888

4、成功

参考文章:远程访问jupyter notebook

上一篇:linux云服务器安装配置anaconda


下一篇:Centos上搭建自己的jupyter book