This is a quick walthrough on how to use the reticulate
package to work with Python interactively in an R session.
First, to specify the Python version to call (e.g., 3 instead of 2), set a RETICULATE_PYTHON
path variable:
$ which python3
/usr/bin/python3
$ echo "RETICULATE_PYTHON='/usr/bin/python3'" >> ~/.Renviron