This question is similar to [Python: reload component Y imported with 'from X import Y'? ]. However, clearly reload doesnt work in python 3.
I initially had
from vb2GP import vb_Estep
However, due to a bug I modified vb_Estep. When I try to reload using importlib.reload(vb_Estep) I get the error:
  File "<ipython-input-61-72416bca3a93>", line 1, in <module>
    importlib.reload(vb_Estep)
  File "/Users/sachin/anaconda/lib/python3.5/importlib/__init__.py", line 139, in reload
    raise TypeError("reload() argument must be module")
TypeError: reload() argument must be module
I even tried importlib(vb2GP.vb_Estep) where I get the error NameError: name 'vb2GP' is not defined, which makes sense since I never imported vb2GP to start off with.
So the question is, how do you reload compnents in Python3 using importlib.
 
     
    