Member-only story

How to Install R in Jupyter with IRKernel in 3 Steps?

The detailed installation of the R kernel for the ‘Jupyter’ environment

--

Recently, my work in RStudio has been very slow and taking up too much resource on my laptop. Therefore, I search for the alternative IDE to run my R jobs and bump into IRKernel, which enables the R programming language in Jupyter Notebook. This article will illustrate how to set up R in Jupyter in details.

Requirements

Before you proceed, it’s important to pre-install:

  • Jupyter notebook. The best way is to install Anaconda distribution, and everything will be ready made for you.
  • R from CRAN-R (Regularly check the latest update from CRAN-R)

For those who want to manually do it without Anaconda distributions, please follow the guidelines here:

Install IRKernal in Anaconda Prompt

  1. Open the Anaconda Prompt
Image 2: Locate where Anaconda Prompt is.

2. To install IRKernel with conda run:
conda install -c r r-irkernel

During the installation process, Anaconda might ask if you want to proceed ([y]/n)? Just type ‘y’

Image 3: IRKernel’s Installation Process

3. Proceed to ‘Anaconda Navigator’ and launch ‘Jupyter Notebook’. If you go to the ‘New’ tab…

--

--

Korkrid Kyle Akepanidtaworn
Korkrid Kyle Akepanidtaworn

Written by Korkrid Kyle Akepanidtaworn

AI Specialized CSA @ Microsoft | Enterprise AI, GenAI, LLM, LLamaIndex, ML | GenAITechLab Fellow, MSDS at CU Boulder

Responses (1)

Write a response