在 Windows 7 64 位下使用 Chrome/Firefox 和 IPython 1.1,如果使用自动代理配置(带身份验证),我在打开现有 IPython 笔记本时出现错误“WebSocket 连接失败”,尽管配置文件包含 localhost 异常。
我在 Chrome (30) 中浏览了一下,在 Javascript 控制台 (F12) 中找到了:
Kernel started: aec48410-068f-424f-8fc1-8fd229409e70 kernel.js:110
Starting WebSockets: ws://127.0.0.1:8888/kernels/aec48410-068f-424f-8fc1-8fd229409e70 kernel.js:143
WebSocket connection to 'ws://127.0.0.1:8888/kernels/aec48410-068f-424f-8fc1-8fd229409e70/iopub' failed: WebSocket is closed before the connection is established.
WebSocket connection to 'ws://127.0.0.1:8888/kernels/aec48410-068f-424f-8fc1-8fd229409e70/stdin' failed: WebSocket is closed before the connection is established.
WebSocket connection failed: ws://127.0.0.1:8888/kernels/aec48410-068f-424f-8fc1-8fd229409e70
显然 websocket 服务器已经启动并且它是正确的地址(与 ipython-notebook 的输出相同)
有任何想法吗?谢谢!