From eec5731d81b5762efe85c5497ac02fd699472044 2022-12-13 21:52:44 From: Emilio Graff <1@emil.io> Date: 2022-12-13 21:52:44 Subject: [PATCH] Fully undo mode flags --- diff --git a/IPython/extensions/autoreload.py b/IPython/extensions/autoreload.py index e34c8fe..cb63a55 100644 --- a/IPython/extensions/autoreload.py +++ b/IPython/extensions/autoreload.py @@ -633,14 +633,16 @@ class AutoreloadMagics(Magics): elif mode == "0" or mode == "off": self._reloader.enabled = False elif mode == "1" or mode == "explicit": - self._reloader.check_all = False self._reloader.enabled = True + self._reloader.check_all = False + self._reloader.autoload_obj = False elif mode == "2" or mode == "all": - self._reloader.check_all = True self._reloader.enabled = True - elif mode == "3" or mode == "complete": self._reloader.check_all = True + self._reloader.autoload_obj = False + elif mode == "3" or mode == "complete": self._reloader.enabled = True + self._reloader.check_all = True self._reloader.autoload_obj = True else: raise ValueError(f'Unrecognized autoreload mode "{mode}".')