-
In a .qmd file using
and in a .qmd file using
Are there any plans to standardize this syntax? I would like to be able to use the knitr syntax in documents using the jupyter engine. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @maxdrohde, Thanks for your contribution.
Quarto syntax is standardize but knitr and jupyter work different and, unfortunately, you need to tailor your document to the computation engine that you will use. Long Explanationknitr supports more than one language per document. For example,
A list of all the languages supported by knitr is available at https://bookdown.org/yihui/rmarkdown-cookbook/other-languages.html. Jupyter only support one language per document. For example,
is a valid Quarto document but it is a invalid Jupyter notebook because you are using Python and Bash in the same document. The IPython kernel has a feature called "shell assignment with !". This is what you mention. My understanding is that it will not work if you are using a kernel other than the IPython. Jupyter also has extra features, for example line magics (
This is a feature request to Jupyter already register at jupyterlab/jupyterlab#2815. |
Beta Was this translation helpful? Give feedback.
Hi @maxdrohde,
Thanks for your contribution.
Quarto syntax is standardize but knitr and jupyter work different and, unfortunately, you need to tailor your document to the computation engine that you will use.
Long Explanation
knitr supports more than one language per document. For example,
A list of all the languages supported by knitr is available at https://bookdown.org/yihui/rmarkdown-cookbook/other-languages.html.
Jupyter only support one language per document. For example,
is a valid Quarto document but it is a invalid Jupyter no…