IPython Notebook Error: Laptop Boot Error

Over the past few minutes, I have been unable to access any of the files .ipynbpreviously created using Python3.4. I will go to a subdirectory with these files, enter

ipython3 notebook

When I open a "new" laptop, I get the following error:

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

I also can not open old laptops. I get an error message:

An unknown error occurred while loading this notebook. This version can load notebook formats v4 or earlier. See the server log for details.

and in the terminal, it indicates

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'

How can i fix this?

+4
source share
4 answers

Find nbsignatures.db. It should be here:

~/.ipython/profile_default/security/nbsignatures.db

or here:

 ~/Library/Jupyter/nbsignatures.db

~ means your home directory.

Move this file to a temporary directory.

Reboot the IPython Notebook Server.

+6

, , , :

, ~/.local/share/jupyter root .

https://github.com/ipython/ipython/issues/8997

+5

delete ~ / .ipython / profile_default / history.sqlite

it helps me.

+3
source

This is not a problem for everyone, but I received the following error message because the disk was really full.

An unknown error occurred while loading this notebook. This version can load notebook formats v4 or earlier. See the server log for details.
+1
source

Source: https://habr.com/ru/post/1625602/


All Articles