Run Python in Rstudio
The reticulate package provides an interface to embed Python sessions within R sessions.
Specify Python interpreter
- run
which -a python python3
in the terminal to check executable paths. - configure a default version of Python to be used with RStudio.
- use Preferences (
cmd
+,
). - choose one of the Conda Environments. Easy to manage packages afterwards.
- use Preferences (