本文介绍了jupyter笔记本电脑不断重新连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

连接jupyter笔记本时出现错误.它说连接到内核.我无法执行其中的任何查询.谁能帮我这个忙.

I'm getting error while connecting the jupyter notebook. 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.

下面是错误消息,并登录了anaconda提示符.

Below is the error message and logs in anaconda prompt.

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

推荐答案

如果在nginx代理后面使用jupyter,请可能有效.

If you are using jupyter behind a nginx proxy, this post may be effective.

将此行添加到nginx conf.

Add this line to nginx conf.

proxy_http_version 1.1;

这篇关于jupyter笔记本电脑不断重新连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 02:50