jupyterlab远程服务器配置
1、首先安装jupyterlab
pip install jupyterlab
2、初始化jupyter配置
jupyter notebook --generate-config
通常来说生成的文件位于~/.jupyter/jupyter_notebook_config.py
3、设置访问密码
jupyter notebook password
然后会弹出需要输入两次密码,输入完成后密码会被记录到~/.jupyter/jupyter_notebook_config.json,将生成的密码hash复制存档,后续会用到
接下来修改远程访问需要修改的配置项,修改~/.jupyter/jupyter_notebook_config.py文件
c.NotebookApp.password = '' # 粘贴上面生成的密码hash c.NotebookApp.allow_remote_access = True c.NotebookApp.ip='*' c.NotebookApp.open_browser = False c.NotebookApp.port = 19630