[Python] How to use Jupyter notebooks or IPython for development without polluting the venv?

Discussão em 'Python' iniciado por Stack, Abril 6, 2025.

  1. Stack

    Stack Membro Participativo

    Best practice for Python is to use venv to isolate to the imports you really need. I use python -m venv.

    For development, it's very convenient to use IPython and notebooks for exploring code interactively. However, these need to be installed into the venv to be used. That defeats the purpose of the venv.

    I can make two venvs, one for usage and one venv-ipy for interactive exploration, but that's hard to manage, and need to be synchornized.

    Is there a solution or practice?

    Continue reading...

Compartilhe esta Página