Skip to content
Discussion options

You must be logged in to vote

The only way currently to combine R and Python in one Quarto document is to use knitr and reticulate; you can't use engine: jupyter because there isn't support for multiple language Jupyter kernels or multiple Jupyter kernels per document.

It sounds like when you use knitr for your Quarto document, reticulate can't find the right Python environment. I usually do this by having a uv virtual environment right there in the project/workspace; I find that reticulate and Quarto do a good job of finding it in this situation. If you need to go a step further to get reticulate to find the right Python environment, check out these reticulate docs:
https://rstudio.github.io/reticulate/articles/versi…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gethinwade
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants