简体   繁体   English

jupyter笔记本不断重新连接

[英]jupyter notebook keeps reconnecting

I'm getting error while connecting the jupyter notebook. 我在连接jupyter笔记本时遇到错误。 It says connecting to the kernel. 它说连接到内核。 I'm not able to execute any of the queries in that. 我无法执行任何查询。 Could anyone help me out with this. 任何人都可以帮我解决这个问题。

Below is the error message and logs in anaconda prompt. 以下是错误消息并记录anaconda提示符。

LOGS ::

[I 16:48:48.414 NotebookApp] Adapting to protocol v5.1 for kernel 0eb0478c-3ad8-4c50-af16-31e66bf45358
[I 16:48:48.414 NotebookApp] Restoring connection for 0eb0478c-3ad8-4c50-af16-31e66bf45358:025E6CA0A7AB437F9F3FFF4C9F7A728C
[I 16:48:49.269 NotebookApp] Adapting to protocol v5.1 for kernel a9b2c0c5-63ab-4f60-b49f-12279703c32f
[I 16:48:49.270 NotebookApp] Restoring connection for a9b2c0c5-63ab-4f60-b49f-12279703c32f:974506A3ADF64A18A1C002CF49107209
[W 16:48:49.286 NotebookApp] zmq message arrived on closed channel
[W 16:48:49.286 NotebookApp] zmq message arrived on closed channel
[I 16:48:49.286 NotebookApp] Starting buffering for a9b2c0c5-63ab-4f60-b49f-12279703c32f:974506A3ADF64A18A1C002CF49107209
[I 16:48:51.263 NotebookApp] Adapting to protocol v5.1 for kernel a9b2c0c5-63ab-4f60-b49f-12279703c32f
[I 16:48:51.263 NotebookApp] Restoring connection for a9b2c0c5-63ab-4f60-b49f-12279703c32f:974506A3ADF64A18A1C002CF49107209
[I 16:48:51.278 NotebookApp] Starting buffering for a9b2c0c5-63ab-4f60-b49f-12279703c32f:974506A3ADF64A18A1C002CF49107209
[I 16:48:53.269 NotebookApp] Adapting to protocol v5.1 for kernel a9b2c0c5-63ab-4f60-b49f-12279703c32f
[I 16:48:53.269 NotebookApp] Restoring connection for a9b2c0c5-63ab-4f60-b49f-12279703c32f:974506A3ADF64A18A1C002CF49107209
[I 16:48:53.282 NotebookApp] Starting buffering for a9b2c0c5-63ab-4f60-b49f-12279703c32f:974506A3ADF64A18A1C002CF49107209
[I 16:48:55.257 NotebookApp] Adapting to protocol v5.1 for kernel a9b2c0c5-63ab-4f60-b49f-12279703c32f
[I 16:48:55.259 NotebookApp] Restoring connection for a9b2c0c5-63ab-4f60-b49f-12279703c32f:974506A3ADF64A18A1C002CF49107209
[I 16:48:55.275 NotebookApp] Starting buffering for a9b2c0c5-63ab-4f60-b49f-12279703c32f:974506A3ADF64A18A1C002CF49107209

在此输入图像描述

If you are using jupyter behind a nginx proxy, this post may be effective. 如果你在nginx代理后面使用jupyter, 这篇文章可能会有效。

Add this line to nginx conf. 将此行添加到nginx conf。

proxy_http_version 1.1; proxy_http_version 1.1;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM