I'm having trouble importing my custom functions into Jupyter Notebook, and would appreciate help.

It seems to me that the Notebook works on the first copy of the imported file, and doesn't recognise any subsequent changes. Here's the process I use to demonstrate the behaviour with the attached project:

  1. In file.py, start with Func1() uncommented and Func2() commented out.
  2. In the Notebook, 'from file1 import *'
  3. Run all cells and see that Func1() is accessible and Func2() is not, as expected.
  4. Edit file1.py by commenting out Func1() and uncommenting Func2().
  5. In the Notebook, restart the kernel and run all cells. See that Func1() remains accessible and Func2() is not, i.e. no change in behaviour despite the change to file1.py.

I'm probably missing something here, but I've tried building and backtesting the project, closing/opening the project, logging out/in from QuantConnect, but all the time the behaviour reflects the first version of file1.

Any ideas?

Tony