【发布时间】:2020-04-14 14:37:18
【问题描述】:
我正在尝试将我的 Jupyter Notebook 文件 (.ipynb) 转换为 HTML 文件以便于阅读。每次我尝试保存笔记本时,都会收到“笔记本验证失败”错误:
Notebook validation failed: ['outputPrepend', 'outputPrepend', 'outputPrepend', 'outputPrepend', 'outputPrepend', 'outputPrepend', 'outputPrepend', 'outputPrepend', 'outputPrepend', 'outputPrepend', 'outputPrepend', 'outputPrepend'] has non-unique elements:
[
"outputPrepend",
"outputPrepend",
"outputPrepend",
"outputPrepend",
"outputPrepend",
"outputPrepend",
"outputPrepend",
"outputPrepend",
"outputPrepend",
"outputPrepend",
"outputPrepend",
"outputPrepend"
]
当我尝试使用 File > Download as 下载为 .html 时,我得到了一个更详细的错误,但我仍然无法弄清楚它的含义或需要做什么来解决问题并最终下载为 HTML:
nbconvert failed: ['outputPrepend', 'outputPrepend', 'outputPrepend', 'outputPrepend', 'outputPrepend', 'outputPrepend', 'outputPrepend', 'outputPrepend', 'outputPrepend', 'outputPrepend', 'outputPrepend', 'outputPrepend'] has non-unique elements
Failed validating 'uniqueItems' in code_cell['properties']['metadata']['properties']['tags']:
On instance['cells'][70]['metadata']['tags']:
['outputPrepend',
'outputPrepend',
'outputPrepend',
'outputPrepend',
'outputPrepend',
'outputPrepend',
'outputPrepend',
'outputPrepend',
'outputPrepend',
'outputPrepend',
'outputPrepend',
'outputPrepend']
message when trying to download as HTML
这只发生在我正在使用的特定笔记本上。我已尝试成功将其他笔记本保存并导出为 HTML。
感谢任何帮助。谢谢
【问题讨论】:
-
您能否将屏幕截图中的错误消息内嵌到问题中?
-
感谢您的提示,威利。已编辑问题以包含内联错误消息。