I currently use this to autoreload in python
%reload_ext autoreload
%autoreload 2
however, I would like to start using deepreload (https://ipython.org/ipython-doc/3/api/generated/IPython.lib.deepreload.html)
However the below does not work:
import builtins
from IPython.lib import deepreload
builtins.reload = deepreload.reload
%reload_ext autoreload
%autoreload 2
How can I get deep autoreload in jupyter
Just reverse the order
%load_ext autoreload
%autoreload 2
import builtins
from IPython.lib import deepreload
builtins.reload = deepreload.reload
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With