The virtual environment in Python is separate from Jupyter Notebooks. A few things are required before your virtual environment can be used in the Jupyter Notebook. These quick instructions are taken from Creating and Using Virtual Environment on Jupyter Notebook with Python
- Activate virtual environment
pip install --user ipykernel
- Add kernel
python -m ipykernel install --user --name=myenv
Now the venv kernel is set up and ready to be used in the Jupyter Notebook.
To remove the virtual environment from Jupyter execute
jupyter kernelspec uninstall myenv
and confirm to remove the kernel.