To run Jupyter notebooks in a virtal environment

cd python-opentree  
virtualenv -p python3 venv-jupyentree  
source venv-jupyentree/bin/activate  
pip install -r requirements.txt  
pip install -e .  
pip install ipykernel  
python -m ipykernel install --user --name=opentree  
pip install jupyter  
jupyter notebook  

Then select “opentree” from the new notebook dropdown