How to remove .ipynb checkpoint

(Aditya) #21

Get into the correct directory i.e the directory where the .ipynb folder is visible via doing ls and then this should work
rm -f . ipynb_checkpoints/
Should work or do a google search or checkout
man rm

(Harry Coppock) #22

Thank you, will give it a try now!

(Harry Coppock) #23

Would this be done in the paper space code or in the Jupyter notebook?

(Aditya) #24

You can use both…

(Nicole) #25

Harry did you ever figure this out? I am running into the same problem

(Harry Coppock) #26

Unfortunately not, I can’t work out a way of deleting the check points. Or maybe I am successfully deleting them but they are being automatically generated before I can run the Image classifier code?

I would also like to know why these check points are being created in my image folders. My .ipynb notebook is not in the data path and I can’t find any other reason with a google. I do not get the same problem when running the image classified code for the dogs and cats set though. Maybe this has something to do with the way the folder is set up?

(Aditya) #27

To remove a directory that contains other files or directories, use the following command. For example, if the directory was named "files", you would type rm -r files at the prompt.

(Harry Coppock) #28

Thank you Aditya that worked!! I have to delete the checkpoints every time I want to re run it but that doesn’t matter.

(Harry Coppock) #29

Have you sorted out the problem now?

(Nicole) #30

I haven’t yet. So you went into the folder that was giving the error, created a notebook and ran rm -r /.ipynb_checkpoints? i was starting to think it has something to do with the file names of my pictures cuz there is a space. im was going to try removing it.

(Nicole) #31

actually i tried this and it worked for me too! but i also can’t re-run without deleting checkpoints each time

(Aditya) #32

So I had searched a bit and found this works…

Just run this line but at your own risk as your work isn’t saved automatically,you won’t want this anyways

%autosave 0
(Check whether it has a single or double %)

(Harry Coppock) #33

Could some one help me delete these checkpoints which are appearing in my results, as I can’t find which cd they’re in.

I would also greatly appreciate it if anyone has an explanation as to why these checkpoints keep cropping up? (my notebook is not in the data folder)