jupyter笔记本没有任何错误,但没有打开端口连接
我正在尝试在Windows远程桌面上连接并使用Jupyter笔记本。我可以很好地安装Jupyter,甚至可以完美地运行它,但是每当我尝试通过浏览器访问笔记本时,我就会收到localhost:8888的“无法触及”消息。
在网上进行了一些广泛的研究之后,人们只需要将127.0.0.1更改为Localhost,反之亦然,或者更改其浏览器,似乎没有任何作用。一些线程还建议我更改配置文件,而是运行jupyter笔记本 - ip 0.0.0.0-port 8888
。此外,我尝试使用几个不同的端口,甚至问IT管理员肯定可用的端口,但这无济于事。
深入研究问题,我检查了Jupyter是否通过运行netstat -aon |在远程桌面上打开了端口连接。 findstr:*端口*
在终端中。这是不是。
我很愚蠢,Jupyter笔记本电脑如何在远程计算机上实际创建端口连接时不会返回错误。看到我可以轻松地通过python -M http.Server 8888
来设置端口连接,我不知道如何解决此问题。关于为什么Jupyter似乎没有打开端口连接以及如何对此进行修复?
I'm trying to connect and use jupyter notebooks on a Windows remote desktop. I can install jupyter fine and even run it perfectly, but whenever I try to access the notebook via browser, I get a "can't reach" message for localhost:8888.
After some extensive research online, where people just needed to change 127.0.0.1 to localhost or vice versa, or changed their browser, nothing seemed to work. Some threads also suggested I change up the config file and instead run jupyter notebook --ip 0.0.0.0 --port 8888
. Furthermore, I tried using several different ports and even asked the IT administrator which port is definetly available, but this was all to no avail.
Delving deeper into the problem, I checked whether jupyter opened a port connection on the remote desktop by running netstat -aon | findstr :*port*
in the terminal. This was not the case.
I'm dumbfounded how jupyter notebook doesn't return an error while not actually creating a port connection on the remote machine. Seeing as I can easily set up a port connection through python -m http.server 8888
I have no idea how to tackle this problem. Any idea on why jupyter doesn't seem to open a port connection and how this can be remedied?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论