Re:Useful Python decorators for data scientists
by gknoy on Monday May 23, 2022 @01:23PM
(#31481977)
That looks amazing, thank you! I wouldn't want it in my production code but it seems like it would be great for something that I'm working on in the REPL.
Re:Useful Python decorators for data scientists
by neves on Monday May 23, 2022 @07:20PM
(#31486075)
if you are using a REPL, first you should be using ipython. Second you should be running:
%load_ext autoreload %autoreload 2
now all your imports will be automatically reloaded.
So good that I have it in ipython startup scripts
@reloading to hot-reload a function from source before every invocation (https://github.com/julvo/reloading)