从 Windows 远程访问 Jupyter 笔记本? [英] Remote access Jupyter notebook from Windows?

查看:41
本文介绍了从 Windows 远程访问 Jupyter 笔记本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通常通过端口转发从 Mac OS X 访问在 Linux 上运行的 Jupyter notebook,如下所示:

I usually access Jupyter notebook running on Linux from Mac OS X via port forwarding like following:

https://coderwall.com/p/ohk6cg/remote-access-to-ipython-notebooks-via-ssh

是否可以在 Windows 10 而不是 Mac OS 上做类似的事情?我猜腻子或 WSL 提供一个.

Is it possible to do similar thing from Windows 10 instead of Mac OS? I guess putty or WSL offer one.

https://www.akadia.com/services/ssh_putty.htmlhttps://superuser.com/questions/1119946/windows-subsystem-for-linux-ssh-端口转发

推荐答案

是的,您可以在 Windows 上使用 PUTTY 创建 SSH 隧道以连接到 Jupyter Notebook Web 界面.在继续之前,请确保 Jupyter Notebook 实例已启动并在服务器上运行.只需按照以下说明操作:

Yes, you can create an SSH tunnel to connect to the Jupyter Notebook web interface using PUTTY on windows. Before proceeding, make sure that the Jupyter Notebook instance is up and running on the server. Just follow the below instructions:

  1. 下载最新版本的 PUTTY
  2. 打开 PUTTY 并输入服务器 URL 或 IP 地址作为主机名
  3. 现在,转到左侧窗格底部的 SSH 以展开菜单,然后单击 Tunnels
  4. 输入要用于访问本地计算机上的 Jupyter 的端口号.选择 8000 或更大(即 8001、8002 等)以避免其他服务使用的端口,并将目的地设置为 localhost:8888 其中 :8888 是运行 Jupyter Notebook 的端口号.现在单击添加"按钮,端口应出现在转发的端口"列表中.
  5. 最后,单击打开"按钮以通过 SSH 连接到服务器并建立所需端口的隧道.在 Web 浏览器中导航到 http://localhost:8000(或您选择的任何端口)以连接到运行的 Jupyter Notebook服务器.
  1. Download the latest version of PUTTY
  2. Open PUTTY and enter the server URL or IP address as the hostname
  3. Now, go to SSH on the bottom of the left pane to expand the menu and then click on Tunnels
  4. Enter the port number which you want to use to access Jupyter on your local machine. Choose 8000 or greater (ie 8001, 8002, etc.) to avoid ports used by other services, and set the destination as localhost:8888 where :8888 is the number of the port that Jupyter Notebook is running on. Now click the Add button, and the ports should appear in the Forwarded ports list.
  5. Finally, click the Open button to connect to the server via SSH and tunnel the desired ports. Navigate to http://localhost:8000 (or whatever port you chose) in a web browser to connect to Jupyter Notebook running on the server.

这篇关于从 Windows 远程访问 Jupyter 笔记本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆