ipython & venvs
As of IPython 4, the procedure for generating kernels in venvs has changed a bit. After some research, the following works for me:
. path/to/venv/bin/activate # or whatever
pip install ipykernel
python -m ipykernel install --user \
--name myenv --display-name "Python (myenv)"
If you’re running the jupyter notebook, do a full page reload to get the new kernel name displayed in the menu.