Using virtualenv on Jupyter Notebook
January 2024
-
Create a virtual environment:
virtualenv venv
-
Activate it:
source ./venv/bin/activate
-
Install ipykernel:
python -m pip install ipykernel
-
Add a Jupyter kernel:
python -m ipykernel install --user --name venv
-
Launch Jupyter Notebook:
jupyter notebook
virtualenv venv
source ./venv/bin/activate
python -m pip install ipykernel
python -m ipykernel install --user --name venv
jupyter notebook