Sometimes you end up trying to be so clever that you out-clever yourself. This happened to me today in R. I tried something that was supposed to save me time and it ended up costing me more time instead.

I use knitr R markdown a lot within R Studio, and it has a lot of advantages. One disadvantage, though is that it tends to encourage you to run the whole program every time even though you’ve only made a change in one spot. I know that there are workarounds for this, and I often take advantage of them, But the path of least resistance is to just run everything. This is different, as I understand it, for Jupyter, but I have not tried Jupyter yet to know for sure.

One nice option (so I thought)