Description
It would be great if the recently introduced native Python REPL added similar functionality to the Jupyter autoreload extension. When working interactively in a session, I frequently want to change code in imported modules and then immediately see the effects of those changes without restarting my session.
I find the most useful modes for the auto reload plugin are either %autoreload 0
, which requires me to manually run %autoreload
whenever I want to reload imported code, or %autoreload 2
, which always automatically picks up changes. Ideally one could just have %autoreload 2
turned on all the time, though in practice I find that it slows down code even when there are no changes to reload, which is why I also like to be able to manually reload.