Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't open Jupyter Notebook files - Unhandled error

I've been having an issue with Jupyter Notebook where I keep getting error

File Load Error for FILENAME.ipynb
Unhandled error

I've looked through many posts including this one that says you can remove the checkpoint folder. I've done that but for some reason it feels like it's ignoring my command

c.FileCheckpoints.checkpoint_dir = ''

The issue seems to be happening with notebooks I've cloned from our Git repo.
When I look at the Jupyter Server output I can see that it's trying to locate the checkpoint file for the file I'm trying to open and it can't find it.

FileNotFoundError: [Errno 2] No such file or directory: '\\\\\\some_folder\\some_folder\\some_folder\\some_folder\\some_folder\\some_folder\\some_folder\\test checkpoints\\some_folder\\.ipynb_checkpoints\\0.Clf_Variable_sig_categorical-checkpoint.ipynb'

I don't understand why it's looking for a checkpoint file? How can I get it to not look for this file and just open the file that I'm trying to open?

This error does not happen to all files that I cloned. Some open others don't, and I can't figure out why it would do that?

Also, if I open the same folder with VS Code, then it opens all the files without any issues.

Any help would be greatly appreciated, I've been going at this for days now and can't figure it out.

like image 773
jmich738 Avatar asked Nov 05 '25 10:11

jmich738


1 Answers

In many cases the reason for this seems to be that the folder .ipynb_checkpoints/ don't have write permissions. Jupyters write some metadata to that folder. enableing write permissions to the folder seems to solve the problem.

like image 170
Michel G Avatar answered Nov 07 '25 06:11

Michel G



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!