top | item 39750329 (no title) kapilsinha | 1 year ago I like the simplicity. I definitely get the payoff for standalone Python scripts, where once the script errors out the memory is cleared. But do you see a similar payoff for Jupyter notebooks (or similar)? discuss order hn newest williamzeng0|1 year ago I think the marginal gain would be a lot less for Jupyter notebooks, but I've definitely rerun individual cells and wasted time there before.I think it could help if you forget to save the output of a function within a single cell like this:1. print(f(x)) # -> check what happened 2. out = f(x) # -> turns out we want to save this, so we have to wait again p10_user|1 year ago FWIW There is a built-in cache system for r markdown documents. I'm not up to speed on their exact implementation but I have found it useful.https://bookdown.org/yihui/rmarkdown-cookbook/cache.html load replies (1)
williamzeng0|1 year ago I think the marginal gain would be a lot less for Jupyter notebooks, but I've definitely rerun individual cells and wasted time there before.I think it could help if you forget to save the output of a function within a single cell like this:1. print(f(x)) # -> check what happened 2. out = f(x) # -> turns out we want to save this, so we have to wait again p10_user|1 year ago FWIW There is a built-in cache system for r markdown documents. I'm not up to speed on their exact implementation but I have found it useful.https://bookdown.org/yihui/rmarkdown-cookbook/cache.html load replies (1)
p10_user|1 year ago FWIW There is a built-in cache system for r markdown documents. I'm not up to speed on their exact implementation but I have found it useful.https://bookdown.org/yihui/rmarkdown-cookbook/cache.html load replies (1)
williamzeng0|1 year ago
I think it could help if you forget to save the output of a function within a single cell like this:
1. print(f(x)) # -> check what happened 2. out = f(x) # -> turns out we want to save this, so we have to wait again
p10_user|1 year ago
https://bookdown.org/yihui/rmarkdown-cookbook/cache.html