当前位置:   article > 正文

本地进入linux服务器的Jupyter_jupiter登录linux scp

jupiter登录linux scp

参考博客

服务器配置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:~$

 

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/245164
推荐阅读
相关标签
  

闽ICP备14008679号