How to set a default environment for Anaconda / Jupyter?

In your ~/.bashrc, include the line:

alias jupyter="source activate su_env; jupyter"

This will condense the two commands into one, and you will activate su env whenever you call jupyter notebook or lab or whatever


First activate the conda environment from the command line, then launch the notebook server.

For example:

$ source activate env_name
$ jupyter notebook

jupyter notebook list of environments with env_name as the default environment

Note: This might only work with environments that were created from within Jupyter Notebook, not environments that were created using conda create on the command line.