赞
踩
参考博客
服务器配置Jupyter notebook/Jupyter notebook连接远程服务器_嘿 是我的博客-CSDN博客_jupyter 连接远程服务器
进入环境nzk
base自带notebook,所以只需要配置notebook的密码即可
(nzk) songhuiling@wangjie-pc:~$ jupyter notebook password
Enter password:
Verify password:
密码:shl 和服务器登录密码一致
[NotebookPasswordApp] Wrote hashed password to /home/songhuiling/.jupyter/jupyter_notebook_config.json
在Linux服务器上启动Jupyter notebook:
(nzk) songhuiling@wangjie-pc:~$ jupyter notebook --no-browser --port=8889 --ip=127.0.0.1
本地转发端口,用win+R 打开cmd, 进入终端。
C:\Users\shl>ssh -N -f -L localhost:8888:localhost:8889 -p 22 songhuiling:shl@172.16.151.175
songhuiling:shl@172.16.151.175's password:
本地浏览器输入:http://127.0.0.1:8888
jupyter上切换环境的办法
(base) songhuiling@wangjie-pc:~$ conda activate nzk
(nzk) songhuiling@wangjie-pc:~$ conda install nb_conda_kernels
(nzk) songhuiling@wangjie-pc:~$ python -m ipykernel install --user --name nzk --display-name "nzk"
Installed kernelspec nzk in /home/songhuiling/.local/share/jupyter/kernels/nzk
(nzk) songhuiling@wangjie-pc:~$
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。