less than 1 minute read

Installing virtualenv kernel and registering

Activate your virtualenv, and install the IPykernel package

pip install ipykernel

Register the kernel installed in the virtualenv with the Jupyter environment

ipython kernel install --user --name=.venv

Installing R kernel and registering

From IRKernel

Open an R console and install the package IRkernel

install.packages('IRkernel')

Register the kernel with the Jupyter environment with a kernelspec

IRkernel::installspec()
# Or a systemwide install
IRkernel::installspec(user = FALSE)

Choosing Kernel

Either define the kernel when creating a new notebook. Kernels in Jupyter Notebook

Or by changing it inside the notebook itself. Kernels in Jupyter Notebook

Removing kernels

jupyter kernelspec uninstall kernel-name