6

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.

Marie10
  • 141
  • 3
  • 8

2 Answers2

22

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.

Holzner
  • 548
  • 4
  • 9
0

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

  • Please provide more details. – Kuro Neko May 17 '22 at 03:54
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community May 17 '22 at 21:31