These steps are completed in your Terminal.
-
Install Python 3. There are many ways to do this. If you are on MacOS, I recommend first installing the HomeBrew package manager then installing Python3:
brew install python3
. -
Install Jupyter Lab (instructions)
-
In R, install the IRkernel package and the kernel to the current R installation:
install.packages('IRkernel')
IRkernel::installspec()
(Extra: If you also want to use Jupyter Lab in VS Code you need to also install languageserver
).
- Launch Jupyter Lab and select R notebook. To launch Jupyter Lab type
jupyter lab
into your terminal.