7

I have an error while loading IPython Jupyter notebook. Also errors occur on the shell. Is there anyone who could help me for solving these errors?


Errors which occur on the shell:

Unhandled error in API request
DatabaseError: database disk image is malformed

Error loading Jupyter notebook:

An unknown error occurred while loading this notebook. 
This version can load notebook formats v4 or earlier. See the server log for details.
Mike Müller
  • 82,630
  • 20
  • 166
  • 161
serenade
  • 359
  • 2
  • 5
  • 13

1 Answers1

8

There seems to be a problem with your history database. Find your history.sqlite. It should be here:

~/.ipython/profile_default/history.sqlite

Rename or remove it and try to start the notebook server again.

Mike Müller
  • 82,630
  • 20
  • 166
  • 161
  • 1
    I get a "Permission denied" warning when I entered your offered comment. What should I do? Thanks. @MikeMüller – serenade Feb 10 '16 at 22:08
  • 1
    Did you stop all of your notebook servers before renaming/removing the file? – Mike Müller Feb 10 '16 at 22:43
  • 1
    In case someone's wondering, I used `ipython locate profile default` command as told [here](https://stackoverflow.com/a/30629448/3679900) for locating the `history.sqlite` file – y2k-shubham May 03 '20 at 09:40