install jupyter notebook in new 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: conda environment not showing up in jupyter
source activate myenv
python -m ipykernel install --user --name myenv --display-name "Python (myenv)"
Example 3: jupyter lab use conda environment
$ conda activate cenv
(cenv)$ conda install ipykernel
(cenv)$ ipython kernel install --user --name=<any_name_for_kernel>
(cenv($ conda deactivate
Example 4: open jupyter notebook with conda envirionment
conda install -c anaconda ipykernel
Example 5: jupyter notebook in environment
python -m ipykernel install --user --name=firstEnv