Reuse cached results #171
-
Hey, I am new to Quarto, so I am sorry if this has been asked before. Currently I have some code chunks to execute. My problem goes with one specific code chunk that is computational heavy. I had ran the chunk with Is there a workaround for this? Maybe this is an expected behaviour that is global among every Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is more of a general But this doesn't really solve your question, because caching for python code via jupyter cache is an all or nothing type of thing. If just one code chunk changes, all cells will be recomputed (for R it is different, there each cell has its own cache). However, three things will be interesting to you:
But here are my two cents about this: If you have a computationally heavy code cell, there is a very high likelihood that this code shouldn't be in a notebook in the first place. There are almost always better alternatives to keep track of results and executions than notebook caches that encourage more reproducible practices. For R this would be the |
Beta Was this translation helpful? Give feedback.
This is more of a general
Quarto
question rather than Neovim specific, but maybe I can help. Firstly, here are the docs for Quarto on caching: https://quarto.org/docs/computations/caching.htmlBut this doesn't really solve your question, because caching for python code via jupyter cache is an all or nothing type of thing. If just one code chunk changes, all cells will be recomputed (for R it is different, there each cell has its own cache).
However, three things will be interesting to you: