Lack of output when running python chunks

I'm using conda to organize virtual environments. When I load a py3 venv in RStudio IDE, it works fine. But when I add python chunks, no output (html or pdf) is produced. E.g.

{r}
devtools::install_github("rstudio/reticulate")
reticulate::use_condaenv('bds_py3', required = T)
reticulate::py_discover_config()

Results in the desired html output showing the correct python version loading

## python:         /Users/tim.daley/miniconda3/envs/bds_py3/bin/python
## libpython:      /Users/tim.daley/miniconda3/envs/bds_py3/lib/libpython3.7m.dylib
## pythonhome:     /Users/tim.daley/miniconda3/envs/bds_py3:/Users/tim.daley/miniconda3/envs/bds_py3
## version:        3.7.9 (default, Aug 31 2020, 07:22:35)  [Clang 10.0.0 ]
## numpy:          /Users/tim.daley/miniconda3/envs/bds_py3/lib/python3.7/site-packages/numpy
## numpy_version:  1.19.2
## 
## NOTE: Python version was forced by use_python function

Adding a chunk after, e.g.

{python}
from platform import python_version

print(python_version())

Then results in no html output being produced.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.