首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Jupyter Notebook JSON无效

Jupyter Notebook JSON无效
EN

Stack Overflow用户
提问于 2018-02-19 06:02:39
回答 1查看 1.7K关注 0票数 0

我已经安装了Anaconda3,并且正在使用一个名为'myenv‘的环境。在环境中,我已经安装了ipywidgets

代码语言:javascript
复制
conda install --name myenv -c conda-forge ipywidgets

我可以看到ipywidgets已安装在此环境中

代码语言:javascript
复制
ipywidgets                7.1.2                    py36_0    conda-forge

但是,当我打开一个笔记本时,每次都会得到以下错误:

代码语言:javascript
复制
Notebook validation failed: 'execution_count' is a required property:
{
 "data": {
  "text/html": "<p>Failed to display Jupyter Widget of type <code>HBox</code>.</p>\n<p>\n  If you're reading this message in the Jupyter Notebook or JupyterLab Notebook, it may mean\n  that the widgets JavaScript is still loading. If this message persists, it\n  likely means that the widgets JavaScript library is either not installed or\n  not enabled. See the <a href=\"https://ipywidgets.readthedocs.io/en/stable/user_install.html\">Jupyter\n  Widgets Documentation</a> for setup instructions.\n</p>\n<p>\n  If you're reading this message in another frontend (for example, a static\n  rendering on GitHub or <a href=\"https://nbviewer.jupyter.org/\">NBViewer</a>),\n  it may mean that your frontend doesn't currently support widgets.\n</p>\n",
  "text/plain": "HBox(children=(IntProgress(value=0, description='Epoch', max=2), HTML(value='')))"
 },
 "metadata": {},
 "output_type": "execute_result"
}

在控制台中:

代码语言:javascript
复制
Notebook JSON is invalid: 'execution_count' is a required property

你有什么办法解决这个问题吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-02-19 16:34:54

尝试“内核->重新启动并运行全部”,然后尝试“文件->保存和检查点”

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48857072

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档