Activating python-kernel for an environment in jupyter-notebook

When you start a notebook after installing a new environment, sometimes you will not find your environment-kernel in the dropdown from the notebook.

To fix this, install ipykernel on to your desired environment. Here, we install it into new_env

source activate new_env
pip install ipykernel

After installing ipykernel, run the command below. This will name the python interpreter in new_env as “name_new_env” and can be found in the drop down for kernels list.

python -m ipykernel install --user --name new_env --display-name "name_new_env"


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s