jupyter notebook venv code example
Example 1: jupyter notebook virtualenv
$ python -m venv projectname
$ source projectname/bin/activate
(venv) $ pip install ipykernel
(venv) $ ipython kernel install --user --name=projectname
Example 2: jupyter notebook venv
python -m ipykernel install --user --name=myenv