I have a boost python module foo.so that calls c++ functions underneath. The foo.so and foo.ipynb are in the same location and
import foo
foo.Hello()
works just fine. However, if I make some changes in the c++ code and then do
reload(foo)
foo.Hello()
It is still using the old code. However, it works if I put everything in a .py file.
I have also tried
%load_ext autoreload
%autoreload 2
and the issue remains.