ShanZhengYang ShanZhengYang - 8 months ago 228
Python Question

IPython Notebook error: Error loading notebook

Within the past few minutes, I have not been able to access any of the

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.

and within the Terminal, it states

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/", line 460, in get
value = obj._trait_values[]
KeyError: 'db'

How can I fix this?


Search for nbsignatures.db. It should be either here:


or here:


The ~ stands for you home directory.

Move this file this to a temporary directory.

Restart your IPython Notebook server.