Reloading a Python extension module from IPython
Using Cython, I am developing an extension module which gets build as an
.so file. I then test it using IPython. During development, I frequently
need to make changes and rebuild. I also need to exit the IPython shell
and reenter all commands. Reimporting the module with
import imp
imp.reload(Extension)
does not work, the code is not updated. Is there a way for me to avoid
restarting the IPython shell after I rebuild the module?
No comments:
Post a Comment