Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

History saving thread error when trying to open Pandas

I just installed IPython on a remote desktop at work. I had to create a shortcut on my desktop to connect to IPython because the remote desktop does not have internet access. I am able to successfully open the IPython notebook. However, when I try to import pandas

import pandas as pd

I get this error that I have never seen before

The history saving thread hit an unexpected error (OperationalError('database or disk is full',)).History will not be written to the database.

Does this error relate to how it was installed on the remote desktop?

like image 563
user3120266 Avatar asked Apr 10 '15 15:04

user3120266


1 Answers

I suffered from this problem for a long time. My dirty fix was to simply restart the kernel and go about my work. However, I did find a way which eliminated it for good. This question seems to have mixed answers for different users. I'll try to list all based on answers elsewhere (all links at the end).

So the issue seems to be because of a certain nbsignatures.db file. And we need to simply remove it to solve the issue. You may find the file here in any one of the locations:

  1. ~/.local/share/jupyter/nbsignatures.db (I found mine here)
  2. ~/.ipython/profile_default/security/nbsignatures.db
  3. ~/Library/Jupyter/nbsignatures.db

All links: https://github.com/ipython/ipython/issues/9293 IPython Notebook error: Error loading notebook

like image 122
raghavsikaria Avatar answered Oct 24 '22 09:10

raghavsikaria