- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已经安装了 Anaconda,当我运行 Jupyter Notebook 并尝试创建一个新笔记本时,它无法连接。它只是尝试连接一段时间,我收到下面的 Traceback 错误。
我已经浏览了关于此错误的所有帖子两天了,但没有任何成功。我曾尝试将 tornado 降级到 5.1.1、升级笔记本、在虚拟环境中运行它等。
任何帮助将不胜感激。
[I 20:20:54.106 NotebookApp] Restoring connection for a92303c8-0087-407e-ae8b-e234f4cf7157:f641986b51bf43359e17929728ccbb13
[I 20:20:54.120 NotebookApp] Starting buffering for a92303c8-0087-407e-ae8b-e234f4cf7157:f641986b51bf43359e17929728ccbb13
[I 20:20:55.145 NotebookApp] Restoring connection for a92303c8-0087-407e-ae8b-e234f4cf7157:f641986b51bf43359e17929728ccbb13
[I 20:20:55.156 NotebookApp] Starting buffering for a92303c8-0087-407e-ae8b-e234f4cf7157:f641986b51bf43359e17929728ccbb13
Future exception was never retrieved
future: <Future finished exception=WebSocketClosedError()>
Traceback (most recent call last):
File "C:\Anaconda\Anaconda3\lib\site-packages\tornado\websocket.py", line 874, in wrapper
yield fut
File "C:\Anaconda\Anaconda3\lib\site-packages\tornado\gen.py", line 1133, in run
value = future.result()
tornado.iostream.StreamClosedError: Stream is closed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Anaconda\Anaconda3\lib\site-packages\tornado\gen.py", line 1141, in run
yielded = self.gen.throw(*exc_info)
File "C:\Anaconda\Anaconda3\lib\site-packages\tornado\websocket.py", line 876, in wrapper
raise WebSocketClosedError()
tornado.websocket.WebSocketClosedError
最佳答案
安装 tensorfowjs 时会出现此问题,在安装 tensorflowjs 时,它会将 prompt-toolkit 降级到 1.0.14 版。要解决此问题,您只需在命令提示符中运行以下代码,将 promp-toolkit 升级到 3.0.5 版:
pip install prompt-toolkit==3.0.5
关于python - 无法连接到 Jupyter Notebook - tornado.websocket.WebSocketClosedError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60678981/
根据一些谷歌搜索,我安装了以下错误处理程序。然而,似乎返回 http 500 的 python 异常并没有被这些东西捕获,尽管 404 是这样。通过我在下面的代码中留下的打印语句,我可以看到它没有命中
我刚刚意识到 WebSocketHandler.write_message() 返回一个 Future。我以前没有在我的函数中产生过这个函数: @tornado.gen.coroutine
这是我的 Tornado 文件:: from tornado.wsgi import WSGIContainer from tornado.ioloop import IOLoop from torn
class MainHandler(BaseHandler): @tornado.web.authenticated def get(self): self.rende
我正在尝试使用 AsyncHTTPTestCase 测试 Tornado .我想测试标有 @tornado.web.authenticated 注释的处理程序。因为此处理程序需要身份验证,所以我们必须
我正在使用 Tornado Web Server (版本 4.1)使用 Python 2.7 创建 REST Web 应用程序。我的请求处理程序之一 (web.RequestHandler) 使用多部
我想知道tornado 的内部工作流程,并且看过this article ,很好,但我就是想不通 ioloop.py里面有这样一个函数 def add_handler(self, fd, handle
如何遍历从 Python/Tornado 处理程序传递到 Tornado 模板的字典? 我试过 {% for key, value in statistics %}
我有一个 Tornado 后端,为 Angular 前端提供服务。更新数据库时,tornado api 不会获取更新的数据。它仅在我重新启动服务器后出现。有人可以帮我解决这个问题吗?我希望获取的数据能
我尝试使用自定义的 WSGIContainer 来处理异步操作: from tornado import httpserver, httpclient, ioloop, wsgi, gen @gen.
from tornado.web import RequestHandler class HelloWorldHandler(RequestHandler): def get(self):
Pylint 遇到 @tornado.web.authenticated 时崩溃 class Handler1(tornado.web.RequestHandler): def get(sel
经过 tornado.gen documentation有人可以帮我理解 tornado.gen.coroutine 和 tornado.gen.engine 之间的确切区别 最佳答案 正如 gen.
代码如下: from tornadoredis import Client from tornado.ioloop import IOLoop from tornado.gen import coro
我有一个 tornado.websocket.WebSocketHandler 的子类。在该类中,我有一个方法使用 Django ORM 从子类模型中获取用户:django.contrib.auth.
我是 ssl 之类的新手,我已经使用 openssl 生成了自签名证书。 openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days
我已经从 tornado 4.2 移动到 tornado 6.0.3,我得到了错误 AttributeError:模块“tornado.web”没有属性“异步” 根据 tornado v6 seems
我一直在关注此 ( https://developer.ibm.com/tutorials/se-distributed-apps-zeromq-part2/) 教程,以设置使用 CurveZMQ 加
我在使用tornado-celery整合tornado和celery时,出现错误:``` traceback (most recent call last): File "/usr/local/l
我正在使用 Tornado 与 twitter 等第三方进行身份验证。 我的登录处理程序看起来像这样 class AuthLoginHandler(BaseHandler, tornado.auth.
我是一名优秀的程序员,十分优秀!