this assumes you have installed Python 3 via Anaconda distribution.
- open a terminal and create a new python 2 environment:
conda create -n py27 python=2.7
- activate the environment: linux
source activate py27
or windowsactivate py27
- install the kernel in the env:
conda install notebook ipykernel
- install the kernel for outside the env:
ipython kernel install --user
- close the env:
source deactivate