'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
Solution 1:[1]
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.
Solution 2:[2]
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.
Solution 3:[3]
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.
Solution 4:[4]
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
Solution 5:[5]
The path of The notebook file may be too long. Keep it short.
http://localhost:8888/notebooks/Desktop/...../......./....../....../....../....../your_notebook.ipynb
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | lesolorzanov |
Solution 2 | Arturo Devesa |
Solution 3 | Amilovsky |
Solution 4 | Marcus Rost |
Solution 5 | Gökhan Karab?çak |