If you already have Anaconda, run conda create -n py37 python=3.7 in your terminal to set up a dedicated space for 3.7 without affecting your main installation.
For data scientists who use Python for ETL and machine learning but R for statistical modeling or visualization (ggplot2), Anaconda is the perfect bridge.
# In Python kernel import rpy2.robjects as ro ro.r('print("Hello from R called by Python 3.7")')
Note: Anaconda recommends using Anaconda Prompt instead of system CMD. Click install and wait for the process to finish. Alternative: Installing Python 3.7 via Modern Anaconda
Create new notebook → Select R kernel.