首页 > 解决方案 > Jupyter Notebok - ConnectionResetError: [WinError 10054] 现有连接被远程主机强行关闭

问题描述

我一直面临这个问题,即 Jupyter 笔记本终端关闭,从而关闭了我当时正在使用的所有 python 内核。终端显示此错误消息:

ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
Exception in callback BaseSelectorEventLoop._read_from_self()
handle: <Handle BaseSelectorEventLoop._read_from_self()>
Traceback (most recent call last):
  File "C:\Users\bnarapar\Anaconda3\envs\env8520gpu\lib\asyncio\events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "C:\Users\bnarapar\Anaconda3\envs\env8520gpu\lib\asyncio\selector_events.py", line 119, in _read_from_self
    data = self._ssock.recv(4096)

我已经看到一些线程说这是由于网络更改而关闭连接的主机。虽然 Jupyter 在本地服务器上运行并且我不确定网络更改如何影响本地服务器连接,但我很确定我禁用了网络适配器上的任何电源管理功能。任何帮助,将不胜感激。

Jupyter 版本:

# Name                    Version                   Build  Channel
jupyter                   1.0.0                    py37_7
jupyter_client            6.1.7                      py_0
jupyter_console           6.2.0                      py_0
jupyter_core              4.7.0            py37haa95532_0
jupyterlab                2.2.6                      py_0
jupyterlab_server         1.2.0                      py_0

标签: pythonjupyter-notebooklocalhosttimeoutjupyter

解决方案


推荐阅读