The Quickest Way to Install Conda Environment as Jupyter Kernel

You have set up your Conda Env and are excited to get started on your new project. However, you are not able to use this brand new env in jupyter notebook by default. That's a bummer! But don't worry. In this short tutorial, we will learn how to install Conda env as Jupyter kernel in 2 steps.

Step 1: Create a short bash file

Assuming that you are cloning the base env to create a new env (let call it myenv), which is usually the case. Create a short bash file as shown below.

#!/bin/sh# content of file# cloning base env and creating myenvconda create --name myenv  --clone base# activating your new envconda activate myenv# installing required packageconda install ipykernel# installing jupyter kernelpython -m ipykernel install --user --name=myenv

Step 2: Run the bash file

Run the file in your terminal


Restart your jupyter notebook and you are done!! Please give a clap if this article helped you 🙏🏻



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ramanpreet Bhatia

Ramanpreet Bhatia

A computer scientist who is passionate about making sense of data.