Код: Выделить всё
poetry env list
>ENV_NAME-HASH-py3.9 (Activated)
poetry run which python
>/Users/myusername/Library/Caches/pypoetry/virtualenvs/ENV_NAME-HASH-py3.9/bin/python
poetry run ipython kernel install --name=ENV_NAME
>Installed kernelspec ENV_NAME in /Users/myusername/Library/Jupyter/kernels/ENV_NAME
Код: Выделить всё
!which python
/Users/myusername/opt/anaconda3/bin/python
Подробнее здесь: https://stackoverflow.com/questions/724 ... nvironment