'error loading jupyter notebook permission denied: ipynb

I was working in a jupyter notebook until it froze. It wouldn't save or shut down so I restarted my computer. I launched jupyter notebook from an anaconda prompt, my folder directory opens per usual. When i tried to open the notebook from before, I get an error loading screen that says permission denied: (name of notebook).ipynb. I hit close and the notebook shuts down.

I checked the folder permissions, I have full control. I can create a new ipynb without any issues. I can open other notebooks without any problem in the same folder. I tried to run a trust notebook through the anaconda prompt and it says the notebook is missing.

I need to recover this particular notebook as it has all my work. Help! Any ideas? Thanks in advance.

I work in the anaconda prompt in an environment other than the root, so this answer using sudo chmod doesn't work for me.



Solution 1:[1]

I had possibly the same problem. In my case the problem was that jupyter notebook must have crashed or had some problem whilst autosaving.

As a result, in the folder where the notebook is saved there's a temporary file called ".~nameofnotebook.ipynb".

This file didn't show up in jupyter notebook, but only in the explorer. I deleted the notebook file and renamed the temporary file to delete the ".~" prefix. Make sure to save a copy of the notebook file before deleting anything in case your problem is different.

The renamed temporary file opens fine and none of my data was lost.

Solution 2:[2]

Change the name of the file and you are good to go bro..

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 Holzner
Solution 2 Arib Shaikh