这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
jupyter-notebook_远程访问 [2020/03/22 16:36] admin |
jupyter-notebook_远程访问 [2022/05/22 20:38] (当前版本) admin [2. 生成配置文件] |
||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== jupyter-notebook/jupyter-lab远程访问 ====== | ||
+ | |||
====== 1. 登陆远程服务器 ====== | ====== 1. 登陆远程服务器 ====== | ||
====== 2. 生成配置文件 ====== | ====== 2. 生成配置文件 ====== | ||
- | $jupyter notebook --generate-config | + | <code> |
- | + | jupyter-notebook --generate-config | |
+ | </code> | ||
====== 3. 生成密码 ====== | ====== 3. 生成密码 ====== | ||
行 21: | 行 24: | ||
====== 4. 修改默认配置文件 ====== | ====== 4. 修改默认配置文件 ====== | ||
- | $vim ~/.jupyter/jupyter_notebook_config.py | + | ''$vim ~/.jupyter/jupyter_notebook_config.py'' |
进行如下修改: | 进行如下修改: | ||
行 28: | 行 31: | ||
c.NotebookApp.open_browser = False | c.NotebookApp.open_browser = False | ||
c.NotebookApp.port =8888 #随便指定一个端口 | c.NotebookApp.port =8888 #随便指定一个端口 | ||
- | c.ContentsManager.root_dir = '绝对路径' | + | c.NotebookApp.notebook_dir = '/home/hu-tom/notebook/' |
====== 5. 启动jupyter notebook: ====== | ====== 5. 启动jupyter notebook: ====== | ||
- | $jupyter notebook | + | ''$jupyter notebook'' |