using env for jupyter kernel code example
Example 1: jupyter from virtualenv
$ python -m venv projectname
$ source projectname/bin/activate
(venv) $ pip install ipykernel
(venv) $ ipython kernel install --user --name=projectname
Example 2: conda environment not showing up in jupyter
source activate myenv
python -m ipykernel install --user --name myenv --display-name "Python (myenv)"