Hacker News new | past | comments | ask | show | jobs | submit login

It's one of those difficult things. You have to restart and run all to make sure your code is working and your state hasn't gone fudgy, but you also don't want to re-run that cell that took 3 hours to run unless you have to.

My personal best practice is to 'restart and run all' to run the entire thing before I commit it to github. Jupyter git integration is a whole separate bag of worms, as the combination of presentation/code violates some core git assumptions.




Any 3-hour calculation should be cached to disk, so that when you re-rerun the notebook you get the result instantaneously




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: