Using virtual environment with Python notebook
In order to use Jupyet Notebook/Lab with virtual environment you need to start the Jupyter within your virtual environment
Go to your virtual environment
Install ipykernel : (virtualenv): "pip install ipykernel"
Install a new kernel: "ipython kernel install --user --name=projectname"
- At this point, you can start jupyter, create a new notebook and select the kernel that lives inside your environment.
and activate environment
Run "jupyter-lab" in your virtual environment to start Jupyter Lab
See https://anbasile.github.io/programming/2017/06/25/jupyter-venv/ for more information