IPython provides an extension autoreload to reload the modules automatically. This is especially useful because we don't want to manually reload modules for testing when developing new functions.
Just execute the following lines within IPython, all modules will be automatically reloaded before executing your code.
%load_ext autoreload
%autoreload 2
comments powered by Disqus