- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在运行 iPython Notebook 时遇到以下错误,想知道是否有人可以提供帮助。
我曾尝试浏览以前的帖子,但找不到答案。笔记本最终在网络浏览器上运行,但错误不断出现。
控制台中的错误:
C:\Apps\Anaconda2\envs\simpleQT\python.exe
C:\Apps\Anaconda2\envs\simpleQT\Scripts\ipython-script.py notebook --no-browser --ip 127.0.0.1 --port 8888
[I 09:43:20.525 NotebookApp] The port 8888 is already in use, trying another random port.
[I 09:43:20.528 NotebookApp] Serving notebooks from local directory: C:\Users\Tanya.Sandoval\_QT\simpleQT
[I 09:43:20.528 NotebookApp] 0 active kernels
[I 09:43:20.528 NotebookApp] The IPython Notebook is running at: http://127.0.0.1:8889/
[I 09:43:20.528 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[E 09:43:37.553 NotebookApp] Notebook JSON is invalid: u'execution_count' is a required property
Failed validating u'required' in schema:
{u'additionalProperties': False,
u'description': u'Result of executing a code cell.',
u'properties': {u'data': {u'$ref': u'#/definitions/misc/mimebundle'},
u'execution_count': {u'description': u"A result's prompt number.",
u'minimum': 0,
u'type': [u'integer', u'null']},
u'metadata': {u'$ref': u'#/definitions/misc/output_metadata'},
u'output_type': {u'description': u'Type of cell output.',
u'enum': [u'execute_result']}},
u'required': [u'output_type',
u'data',
u'metadata',
u'execution_count'],
u'type': u'object'}
On instance:
{u'data': {u'text/html': u'<div>\n<table border="1" class="dataframe">\n <thead>\n <tr style="text-align: right;">\n <th></th>\n <th>Open</th>\n <th>High</th>\n <th>Low</th>\n <th>Close</th>\n <th>Volume</th>\n </tr>\n <tr>\n <th>Timestamp</th>\n <th></th>\n <th></th>\n <th></th>\n <th></th>\n <th></th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>2009-01-02</th>\n <td>15.90</td>\n <td>15.95</td>\n <td>15.30</td>\n <td>15.55</td>\n <td>1065</td>\n </tr>\n <tr>\n <th>2009-01-05</th>\n <td>15.94</td>\n <td>15.94</td>\n <td>15.32</td>\n <td>15.38</td>\n <td>3710</td>\n </tr>\n <tr>\n <th>2009-01-06</th>\n <td>15.60</td>\n <td>15.90</td>\n <td>15.43</td>\n <td>15.69</td>\n <td>4619</td>\n </tr>\n <tr>\n <th>2009-01-07</th>\n <td>15.75</td>\n <td>16.04</td>\n <td>15.40</td>\n <td>15.45</td>\n <td>5956</td>\n </tr>\n <tr>\n <th>2009-01-08</th>\n <td>15.40</td>\n <td>15.45</td>\n <td>14.49</td>\n <td>14.76</td>\n <td>8454</td>\n </tr>\n <tr>\n <th>2009-01-09</th>\n <td>14.60</td>\n <td>14.80</td>\n <td>14.40</td>\n <td>14.44</td>\n <td>6846</td>\n </tr>\n <tr>\n <th>2009-01-12</th>\n <td>14.40</td>\n <td>14.40</td>\n <td>13.70</td>\n <td>13.94</td>\n <td>10355</td>\n </tr>\n <tr>\n <th>2009-01-13</th>\n <td>13.30</td>\n <td>14.05</td>\n <td>13.30</td>\n <td>13.78</td>\n <td>11341</td>\n </tr>\n <tr>\n <th>2009-01-14</th>\n <td>13.90</td>\n <td>14.25</td>\n <td>13.20</td>\n <td>13.28</td>\n <td>11170</td>\n </tr>\n <tr>\n <th>2009-01-15</th>\n <td>13.17</td>\n <td>13.64</td>\n <td>13.07</td>\n <td>13.25</td>\n <td>9745</td>\n </tr>\n </tbody>\n</table>\n</div>'},
u'metadata': {},
u'output_type': u'execute_result'}
[W 09:43:37.565 NotebookApp] Notebook notebook.ipynb is not trusted
[I 09:43:38.515 NotebookApp] Kernel started: c8c37658-b072-4a1d-87c5-0f862f514e44
Notebook Validation failed: u'execution_count' is a required property:
{
"output_type": "execute_result",
"data": {
"text/html": "<div>\n<table border=\"1\" class=\"dataframe\">\n <thead>\n <tr style=\"text-align: right;\">\n <th></th>\n <th>Open</th>\n <th>High</th>\n <th>Low</th>\n <th>Close</th>\n <th>Volume</th>\n </tr>\n <tr>\n <th>Timestamp</th>\n <th></th>\n <th></th>\n <th></th>\n <th></th>\n <th></th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <th>2009-01-02</th>\n <td>15.90</td>\n <td>15.95</td>\n <td>15.30</td>\n <td>15.55</td>\n <td>1065</td>\n </tr>\n <tr>\n <th>2009-01-05</th>\n <td>15.94</td>\n <td>15.94</td>\n <td>15.32</td>\n <td>15.38</td>\n <td>3710</td>\n </tr>\n <tr>\n <th>2009-01-06</th>\n <td>15.60</td>\n <td>15.90</td>\n <td>15.43</td>\n <td>15.69</td>\n <td>4619</td>\n </tr>\n <tr>\n <th>2009-01-07</th>\n <td>15.75</td>\n <td>16.04</td>\n <td>15.40</td>\n <td>15.45</td>\n <td>5956</td>\n </tr>\n <tr>\n <th>2009-01-08</th>\n <td>15.40</td>\n <td>15.45</td>\n <td>14.49</td>\n <td>14.76</td>\n <td>8454</td>\n </tr>\n <tr>\n <th>2009-01-09</th>\n <td>14.60</td>\n <td>14.80</td>\n <td>14.40</td>\n <td>14.44</td>\n <td>6846</td>\n </tr>\n <tr>\n <th>2009-01-12</th>\n <td>14.40</td>\n <td>14.40</td>\n <td>13.70</td>\n <td>13.94</td>\n <td>10355</td>\n </tr>\n <tr>\n <th>2009-01-13</th>\n <td>13.30</td>\n <td>14.05</td>\n <td>13.30</td>\n <td>13.78</td>\n <td>11341</td>\n </tr>\n <tr>\n <th>2009-01-14</th>\n <td>13.90</td>\n <td>14.25</td>\n <td>13.20</td>\n <td>13.28</td>\n <td>11170</td>\n </tr>\n <tr>\n <th>2009-01-15</th>\n <td>13.17</td>\n <td>13.64</td>\n <td>13.07</td>\n <td>13.25</td>\n <td>9745</td>\n </tr>\n </tbody>\n</table>\n</div>"
},
"metadata": {}
}
最佳答案
在笔记本上使用 PyCharm 后,我遇到了同样的问题。
我可以通过简单地重新启动内核、清除所有输出并保存笔记本来使错误在浏览器中消失。
重新启动内核是通过转到 来完成的。内核 菜单,然后选择 重启并清除输出 .有关示例,请参见屏幕截图:
关于ipython-notebook - iPython 笔记本错误 - 笔记本 JSON 无效 : u'execution_count' is a required property,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34085676/
我想跳出当前正在运行的程序并返回到 shell(无需重新启动 ipython) 最佳答案 在 Windows 上重新安装 console2 和 ipython 后,我遇到了同样的问题。如果您使用 ip
在使用 IPython 笔记本时,我越来越希望笔记本上附有一个控制台,以进行交互式编程。我发现自己添加了几行来测试代码片段,然后删除它们,这就是很好的用法。在更糟糕的用法中,我会更改同一行中的命令,一
ipthon-sql 是 ipython 的扩展,我先通过 pip install ipython-sql 安装 项目在这里:https://github.com/catherinedevlin/ip
我正在ipython Notebook中运行一些数据分析。一台单独的计算机收集一些数据并将其保存到服务器文件夹中,我的笔记本电脑会定期在该服务器上扫描新文件并进行分析。 我在while循环中执行此操作
我想让多个ipython Notebook实例在同一用户的不同端口上运行。可能吗? 类似于“NotebookApp.port”的端口列表(带有默认端口)。 最佳答案 再次运行jupyter noteb
所以 - ROOT 社区中的好人创造了以下魔法: # This is for intercepting the output of ROOT # In a cell, put %%rootprint
我正在使用 IPython 笔记本,我想在外部编辑器中编辑程序。 我如何获得 %edit file_name.py打开 Notepad++ 等编辑器。 最佳答案 运行 %edit?将为您提供%edit
精简版 我能否在 ipython 笔记本中获得 sympy 几何代数对象的漂亮 latex 风格打印? 更长的版本 在ipython笔记本,我可以从 sympy 得到各种数学对象的 pretty-pr
我不明白第四个和第六个提示中的 ${} 正在做什么,并且我找不到任何关于此的文档,Python for Unix and Linux 一书系统管理员有一个类似于第六个提示中的示例,其中变量不仅前面加上
我想在已安装 Python 2.7 的 Windows XP 计算机上运行 IPython(版本 0.12)。 我通过 Windows 二进制安装程序安装,但安装后 IPython 没有显示在菜单中,
IPython 中是否有自动关闭方括号、引号、圆括号等的选项? 我希望有一个类似于 gedit 插件中的功能。 最佳答案 通过调整 ~/.inputrc 可以让应用程序(包括 IPython)使用 r
我正在使用 IPython Web 笔记本,每个 block 之前都有一个提示编号,例如“In [68]:”。这个提示号码的用途是什么?你能用它做任何事吗?您可以/应该重置它吗? 最佳答案 IPyth
我升级到 iPython 3.0.0(Python 3.4;使用 Anaconda 环境;Mac OSX 10.9.5),打开新的 iPython Notebook session 的行为似乎发生了变
我希望能找到更多关于以下内容的文档: From one computer: C:\Python>ipython notebook opens the browser as 'IPython Noteb
我正在尝试在我的 IPython 笔记本中上传一个大小为 500MB 的网络日志文件。但是我收到错误消息“无法上传文件 >25Mb”。 有什么方法可以克服这个错误。任何帮助将不胜感激。 谢谢。 最佳答
简单地说,魔术函数 %precision 不考虑简单变量输出的浮点精度。 #Configure matplotlib to run on the browser %matplotlib noteboo
安装 IPython 后,我立即创建了一个默认配置文件: $ ipython profile create 然后,我创建了另一个,这次我给它起了名字testing: $ ipython profile
我已经尝试使用命令来拆分单元格“m -”,但它不起作用。使用 esc 或 fn 键作为修饰符时,所有键命令的重置都可以正常工作。我也处于正确的模式(edititng 模式)。 最佳答案 在编辑模式下,
我想将 ipython 笔记本中的字体类型更改为 consolas 字体类型。我首先使用 ipython profile create 但是,我不清楚在此配置文件中指定字体类型的语法。 任何帮助表示赞
我正在使用 iPython 命令行界面,经过一些操作后,我想将操作历史记录保存到笔记本文件中。但我从一开始就没有使用 iPython notebook。我还能做到吗? 最佳答案 来自@Thomas K
我是一名优秀的程序员,十分优秀!