远程访问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
标签:password,Jupyter,notebook,ubuntu,服务器,NotebookApp,jupyter 来源: https://blog.csdn.net/qq_37966884/article/details/120485861