Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/303.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Jupyter笔记本JSON无效_Python_Jupyter Notebook_Ipywidgets - Fatal编程技术网

Python Jupyter笔记本JSON无效

Python Jupyter笔记本JSON无效,python,jupyter-notebook,ipywidgets,Python,Jupyter Notebook,Ipywidgets,我已经安装了Anaconda3,正在使用一个名为“myenv”的环境。在那个环境中,我安装了ipywidgets conda install --name myenv -c conda-forge ipywidgets 我可以看到ipywidgets安装在这个环境中 ipywidgets 7.1.2 py36_0 conda-forge 但是,当我打开笔记本时,每次都会出现以下错误: Notebook validati

我已经安装了Anaconda3,正在使用一个名为“myenv”的环境。在那个环境中,我安装了ipywidgets

conda install --name myenv -c conda-forge ipywidgets
我可以看到ipywidgets安装在这个环境中

ipywidgets                7.1.2                    py36_0    conda-forge
但是,当我打开笔记本时,每次都会出现以下错误:

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"
}
在控制台中:

Notebook JSON is invalid: 'execution_count' is a required property

关于如何修复此问题的任何想法

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