Python environments

Poetry

Poetry as Jupyter kernel

To register a poetry environment (named foo) as a Jupyter kernel, run:

poetry run python -m ipykernel install --user --name foo

venv

Create a new venv with the command:

$ virtualenv venv

and activate it using (under Bash or zsh) with:

$ source venv/bin/activate