Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lab 1 - Add a R code chunk for using the virtual python enviornment in model.qmd #252

Open
durraniu opened this issue May 15, 2024 · 0 comments

Comments

@durraniu
Copy link

durraniu commented May 15, 2024

The model.qmd file uses python code but does not specify which python env and/or quarto engine is used. By default, quarto uses knitr engine so it tries to use a python env that reticulate finds. This env does not necessarily contain all the required packages and is likely going to be different from the virtual env created by user for this project. My suggestion is to add this R code chunk at the top of model.qmd:

reticulate::use_virtualenv('./.venv', required=TRUE)

assuming that the created virtual env is .venv as recommended in Appendix D.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant