无法访问 Azure 上的 Jupyter

Jupyter on Azure can not be reached

我无法访问 Azure 云中数据科学 VM 上的 Jupyter notebook。

我做了什么:

  1. 为 Linux 创建数据科学 VM。新建资源组、NSG等
  2. 按照命令dsvm-more-info的说明进行操作。那是
    1. 设置c.NotebookApp.password (u'sha1:89this89is89a89fake89')
    2. 重启 jupyter
  3. 访问https://12.34.56.78:9999/(IP地址当然是假的。)

但是我无法与服务器建立任何连接。

The Jupyter notebook is accessed through JupyterHub. You sign in using your local Linux user name and password.

因此,您应该从端口 8000 而不是 9999 连接 Jupyter notebook。

您可以从任何主机访问 Jupyter 笔记本服务器。只需输入 https://<VM DNS name or IP Address>:8000/

您还可以使用 netstat -ant 来检查虚拟机上的端口侦听。端口 9999 没有监听。因此,您无法从端口 9999 获取它。

有关 Azure 数据科学 VM 上的 Jupyter 的更多信息,请参阅此 link。你可以检查 Jupyter notebook.

如果您在 Ubuntu 上运行,则可以连接到 Jupyter Notebook。

假设您的 jupyter notebook 将 运行 on port:8888 on Azure VM。 首先你必须创建一个 SSH 隧道:

在您的本地计算机上键入:

ssh -L 8080:localhost:8888 username@server_address

然后在 Azure 上启动笔记本

jupyter notebook --no-browser

最后,在本地计算机上的网络浏览器中打开 http://localhost:8080