jupyter lab add conda 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: add conda environment to jupyter

python -m ipykernel install --user --name=firstEnv

Example 3: jupyter add kernel conda

source activate myenv
python -m ipykernel install --user --name myenv --display-name "Python (myenv)"

Example 4: conda add kernel

conda activate myenv
conda install ipykernel
python -m ipykernel install --user --name myenv  --display-name "myenv"

Tags:

Misc Example