Cache working when using "Quarto: Run Cells Above"? #3697
-
Apologies if this is a very basic question, but there's something with the chunk option " When is the cache supposed to be used? Only when rendering the .qmd file (i.e. Quarto: Render HTML), or also when using the script interactively (e.g. Quarto: Run All Cells). As far as I can tell, currently, it only uses the cache when rendering the project, but re-computes the chunk, despite Is this how it is supposed to work? I personally would think that the cache should be used, irrespectively of how the document/chunk is triggered (render/run). At least that's how I understand the documentation. But maybe I am missing something. Many thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
It's only at the document/project rendering. This is how |
Beta Was this translation helpful? Give feedback.
It's only at the document/project rendering.
Caching results while being in interactive mode is pretty unsafe, since you can change global variables which won't affect the code, but will affect the output, ultimately leading to wrong cache values being used.
This is how
knitr
works and I believejupyter-cache
does the same forJupyter
/Python
.