How to add conda/mamba environment to jupyter notebook

Create conda environment called, “myenv” (environment name can be anything)

conda create --name myenv

Activate “myenv” environment

conda activate myenv

Install ipykernel (ipykernel is python execution backend for jupyter)

conda install ipykernel

Add your environment “myenv” to jupyter

python -m ipykernel install --user --name=myenv
Check the list jupyter notebook and change to environment of your interest

## To list existing Jupyter virtual environments
jupyter kernelspec list

To remove environment and from jupyter

## To remove conda environment
conda env remove -n myenv

## To remove the environment from Jupyter
jupyter kernelspec uninstall myenv