The Jupiter note-book doesn't update imports after updating the .py file

goldentown
New Contributor III

Please help. Here's an example:

I have one .py file and one .ipynb, and the .py file contains the test function, but after adding the new function test1, it doesn't appear in .ipynb. Even after re-running the .py file and reimporting it in .ipynb. How can I achieve the expected result?

goldentown
New Contributor III

%load_ext autoreload

%autoreload 2

View solution in original post