Equivalent to Knitr cat
for Jupyter engine?
#1349
-
When working with R + Knitr documents, I can For example, I can write a Stan model in one chunk:
If I want to sample from this model using
and then read that back into my Julia code chunk. This allows me to present syntax-highlighted Stan models without re-typing code in two different places. I'm wondering if there's an easy way to get the same result — writing a chunk which I import into another chunk as a file or string — while using the Jupyter engine. Knitr + JuliaCall seems to require that I install the arm version of Julia on my laptop for compatibility reasons (instead of just emulating x86), which seems like a bad idea, as that Julia branch still has some stability issues. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The equivalent of the cat engine of |
Beta Was this translation helpful? Give feedback.
The equivalent of the cat engine of
knitr
would be the "magic commands" for Jupyter Notebook, and in your case it is%%writefile example.txt
that you have to insert in the cell.The question is, does Quarto handle the magic commands/functions? I think it does but cannot test it now.