在过去的几分钟内,我无法访问以前用Python3.4创建的任何.ipynb
文件。我进入带有这些文件的子目录,输入
ipython3 notebook
当我打开"new"笔记本时,出现以下错误:
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'
我怎样才能解决这个问题?
最佳答案
搜索nbsignatures.db
。它应该在这里:
~/.ipython/profile_default/security/nbsignatures.db
或在这里:
~/Library/Jupyter/nbsignatures.db
~
代表您的主目录。将此文件移到一个临时目录。
重新启动您的IPython Notebook服务器。
关于python - IPython Notebook错误: Error loading notebook,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/34960020/