Jupyter Notebook:无法建立与笔记本服务器的连接。笔记本电脑将继续尝试重新连接

时间:2020-05-16 11:26:21

标签: python jupyter-notebook

最近几个月,Python运行起来没有任何问题。

今天我执行了以下代码来安装tensorflowjs:

!pip install tb-nightly
!pip install gast==0.2.2
!pip install --user tensorflowjs

此后,我尝试使用该代码加载模型:

from keras.models import load_model
model = load_model("path\to\model\*.hdf5")

它不起作用,我收到了此错误代码,但这不是实际的问题。但是也许您对这个问题有更好的印象。

ValueError: Expected a Trackable object for export, got <keras.engine.sequential.Sequential object at 0x7f33a5a716a0>.

现在,当我尝试运行任何Jupyter Notebook时,都会出现此错误:

Connection failed
A connection to the notebook server could not be established. The notebook will continue trying to reconnect. Check your network connection or notebook server configuration.

我不知道为什么。也许是因为我为了运行tensorflowjs而执行的操作,但是我没有任何解释。有可以帮助的人吗?

非常感谢!

0 个答案:

没有答案