The Quickest Way to Install Conda Environment as Jupyter Kernel
1 min readDec 14, 2021
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 env.sh 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 env.sh file in your terminal
sh bash.sh
Restart your jupyter notebook and you are done!! Please give a clap if this article helped you 🙏🏻