jupyter notebook add environment code example
Example 1: add conda env to jupyter
source activate myenv
python -m ipykernel install --user --name myenv --display-name "Python (myenv)"
Example 2: how to add virtual environment in jupyter notebook
python -m ipykernel install --user --name=<my_env_name>
Example 3: conda environment not showing up in jupyter
source activate myenv
python -m ipykernel install --user --name myenv --display-name "Python (myenv)"
Example 4: jupyter notebook in environment
python -m ipykernel install --user --name=firstEnv