I'm using jupyter notebook to write my code but I'm facing a problem that I have to run all the code each time I run the program.

Is there is a way I can start from where I stopped running to save time? Especially since my code takes around 4 hours to run.