- Install rpy2. Open Terminal from Anaconda (use the environment for this workshop) and run: pip install rpy2[all] (see options).
- While in the Terminal, verify the Python version of your environment (python -V) and find the R PATH using: R RHOME
- Start Jupyter. If you have problems runing %load_ext rpy2.ipython locally (not in Colab), set the path like this:
import os
os.environ['R_HOME'] = 'write the path you got in step 2'
You can see the notebook here.