Currently I am working on a python project that contains sub modules and uses numpy/scipy. Ipython is used as interactive console. Unfortunately I am not very happy with workflow that I am using right now, I would appreciate some advice.
In IPython, the framework is loaded by a simple
IPython comes with some automatic reloading magic:
%load_ext autoreload %autoreload 2
It will reload all changed modules every time before executing a new line. The way this works is slightly different than
dreload. Some caveats apply, type
%autoreload? to see what can go wrong.
If you want to always enable this settings, set it in the IPython configuration. In
~/.ipython/profile_default/ipython_config.py (or your own
c.InteractiveShellApp.extensions = ['autoreload'] c.InteractiveShellApp.exec_lines = ['%autoreload 2']
Credit to @Kos via a comment below.