无法建立ippython笔记本的WebSocket连接.您将无法运行代码



我一直在尝试在ippython笔记本中运行一些简单的代码,但我一直得到这个错误:"无法建立WebSocket连接。您将无法运行代码。检查您的网络连接或笔记本服务器配置。"

安装过程中没有问题,加载笔记本电脑时也没有错误信息。

我想也许这与我在xamp上运行本地服务器有关?

有人知道怎么解决这个问题吗?

我很高兴。

编辑:我在命令提示符中使用命令"ipython notebook"加载我的笔记本,输出是:
[NotebookApp]"Using existing profile dir: c:usersNimrod.ipythonprofile_default
[NotebookApp]using MathJax from CDN: http://cdn.mathjax.org/mathjax/latest/mathjax.js
[NotebookApp] Serving notebooks from local directory c:usersNimrod
[NotebookApp] 0 active kernels
[NotebookApp] use control c to stop server and shut doen all kernels
[NotebookApp] Kernel started: 0ac0db12-63a0-4a4a-be25-0051

好的,默认情况下,ipython notebook使用运行在本地端口8888上的tornado http服务器独立启动。

试着在浏览器中输入localhost:8888

如果您想自定义它以在不同的端口上运行,请使用:

ipython notebook --port=<NEW PORT>

如果您还希望允许远程机器连接,请执行:

ipython notebook --ip=0.0.0.0 --port=<NEW PORT>

相关内容

最新更新