美文网首页
打开远程服务器上的Jupyter ipy notebook

打开远程服务器上的Jupyter ipy notebook

作者: Kaidi_G | 来源:发表于2022-09-07 04:13 被阅读0次
  1. 在你的服务器端启动notebook
jupyter notebook --no-browser --port=8080

port你不给也可以,启动后看得到默认给的,但是为了方便最好给一个。

2.在本地机器的terminal里面运行

ssh -L 8080:localhost:<PORT> <REMOTE_USER>@<REMOTE_HOST>

比如

$ ssh -L 8080:localhost:8080 kaidiguo@130.155.85.100

Activate the web console with: systemctl enable --now cockpit.socket
Last login: Tue Sep  6 19:53:34 2022 from 67.145.281.50

port和1保持一致。

  1. 这时候你就可以在本地浏览器上打开http://localhost:8080/了,还是注意8080这里要和第一步的port一致。

相关文章

网友评论

      本文标题:打开远程服务器上的Jupyter ipy notebook

      本文链接:https://www.haomeiwen.com/subject/efejirtx.html