在过去的几分钟内,我无法访问之前使用 Python3.4 创建的任何 .ipynb
文件。我转到包含这些文件的子目录,输入
ipython3 notebook
当我打开“新”笔记本时,出现以下错误:
Unexpected error while saving file: Untitled1.ipynb database disk image is malformed
我也打不开旧笔记本。我收到错误:
An unknown error occurred while loading this notebook. This version can load notebook formats v4 or earlier. See the server log for details.
在终端内,它声明
kernels (twice to skip confirmation).
[E 00:30:22.352 NotebookApp] Unhandled error in API request
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/traitlets/traitlets.py", line 460, in get
value = obj._trait_values[self.name]
KeyError: 'db'
我怎样才能解决这个问题?
原文由 ShanZhengYang 发布,翻译遵循 CC BY-SA 4.0 许可协议
搜索
nbsignatures.db
。它应该在这里:或在这里:
~
代表你的主目录。将此文件移动到临时目录。
重新启动 IPython Notebook 服务器。