Jupyter notebook launch server from within venv
When using Python’s virtual environment for a project, we want to be able to launch a Jupyter notebooks server from within the virtual environment so that Jupyter can access the environement’s installed packages.
- Activate virtualenv
source ./venv/bin/act
- If not done, install ipykernel in
venv
pip install ipykernel
- Install kernel
python -m ipykernel install --user --name=myenv
- To remove
myenv
, runjupyter-kernelspec uninstall myenv
There are no notes linking to this note.
There are no papers linking to this note.