Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jupyter Notebook "Notebook changed" keeps appearing

i keep getting the following message : "The notebook file has changed on disk since the last time we opened or saved it. Do you want to overwrite the file on disk with the version open here, or load the version on disk (reload the page)?" on Jupyter notebook even though i didn't make any changes, how can i fix this problem?

Thanks

like image 371
EmmaS Avatar asked May 11 '18 15:05

EmmaS


4 Answers

Here's something to point you toward several possible solutions. Not sure why no one has commented or answered this yet, since from the link below this has been a problem through many versions of jupyter since at least 2015 and continues to be today.

What I gleaned from the issue report below is this seems to be an issue with the volume mount, specifically with a clock difference between the local machine and the server. For leads and some temporary patches, see https://github.com/jupyter/notebook/issues/484.

like image 189
Karl Baker Avatar answered Nov 10 '22 17:11

Karl Baker


I have faced their issue and it was really annoying. By just moving my notebook.ipynb to my desktop, thus shortening the path, it worked. So, the issue seems to be the long path to the notebook.ipynb. Hopefully, some future updates will solve the problem, but for the time being, shortening the path works great.

like image 45
Amilovsky Avatar answered Nov 10 '22 16:11

Amilovsky


I had this same problem when the file address of the notebook I was using was really long. The notebook was inside too many folders, making the address too long for the kernel.

I fixed this problem by moving my notebook.ipynb to my desktop to shorten the path as much as possible.

The message "The notebook file has changed on disk since the last time we opened or saved it. Do you want to overwrite the file on disk with the version open here, or load the version on disk (reload the page)?" finally stopped popping up.

like image 2
Arturo Devesa Avatar answered Nov 10 '22 17:11

Arturo Devesa


Simple solution that should work for almost everyone:

Reduce the size of the filename. In other words make it shorter.

For instance:

  • "C:\Users\Sky\Desktop\For university\Docs for uni\For University\DL\Courses complete\Program ok\1 - Neural Networks and Deep Learning\Week 3\Planar data classification with one hidden layer"

To

  • C:\Users\Sky\Desktop\For university\Docs for uni\For University\DL\Courses complete\Program ok\1 - Neural Networks and Deep Learning\Week 3\OneLayerNN'

This should fix it!

If it's still not short enough, try to move the folder somewhere where its path is shorter, say for instance, the desktop

like image 1
Marcus Rost Avatar answered Nov 10 '22 18:11

Marcus Rost