[Python] Jupyter (VSCode) doesn't recognize changes in self-made modules/packages

Discussão em 'Python' iniciado por Stack, Junho 18, 2025.

  1. Stack

    Stack Membro Participativo

    Whenever I change something in my own packages and reload the import in JupyterNotebook the change is not taken over by Jupyter.

    Currently I copy the function from the package into a cell and rerun it there. But this is messy and obviously not a nice solution. And don't want to restart my whole kernel as I work with data sets and other packages that need even some time to load.

    I understand that

    %reload_ext autoreload
    %autoreload 2


    solves my problem, but only if I load my modules directly. But I prefer to load function from my modules instead of the whole module.

    Continue reading...

Compartilhe esta Página