0 votes
785 views

I work using the Jupyter Notebook Service. I had a file created and saved it as desrfmodels.ipynb and have been running this notebook for months. Today, I received an error: File Load Error for desrfmodels.ipynb

by malinadesai (140 points) | 785 views
Hi mainadesai,

The good news is that the file is not corrupted. We could open it with no problems. We don't know why you get that error. What we suggest is that you shutdown to server and restart afresh and let us know if the problem persists.

Thanks,

Igor

1 Answer

0 votes

In this particular case I was able to copy the notebook file to my own account and open it normally.  While investigating the issue I found other users with a similar problem but with notebook files that could not be opened.

There is a known issue where closing a notebook file before it has been properly saved can leave the JSON file with lines such as:

<<<<<<< HEAD

    "__version__ = '20230830' \n",

=======

    "__version__ = '20230818' \n",

>>>>>>> master

It is the '<<<', '===' and '>>>" lines that are the problem. By opening a terminal and the file with an editor and removing these lines you can fix the file.  Hope this helps.

Alternatively, you could recover an earlier version from the '.ipynb_checkpoints" directory but there is no guarantee a checkpoint file will exist.

by datalab (21.6k points)

449 questions

463 answers

473 comments

658 users

Welcome to Data Lab Help Desk, where you can ask questions and receive answers from other members of the community.

Categories