IPython Notebook错误:加载笔记本时出错 [英] IPython Notebook error: Error loading notebook

查看:843
本文介绍了IPython Notebook错误:加载笔记本时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在过去的几分钟内,我无法访问以前用Python3.4创建的任何.ipynb文件.我进入带有这些文件的子目录,输入

Within the past few minutes, I have not been able to access any of the .ipynb files previously created with Python3.4. I go to the subdirectory with these files, enter

ipython3 notebook

当我打开新"笔记本时,出现以下错误:

When I open a "New" notebook, I get the following error:

Unexpected error while saving file: Untitled1.ipynb database disk image is malformed

我也无法打开旧笔记本.我收到错误消息:

I cannot open old notebooks either. I get the error:

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

~代表您的主目录.

将此文件移动到临时目录.

Move this file this to a temporary directory.

重新启动IPython Notebook服务器.

Restart your IPython Notebook server.

这篇关于IPython Notebook错误:加载笔记本时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆