News for hackers. Stuff that matters.
Re:Useful Python decorators for data scientists by julvo on Monday May 23, 2022 @07:37AM (#31477722)
To add to the list of very handy footguns:

@reloading to hot-reload a function from source before every invocation (https://github.com/julvo/reloading)

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

Re:Useful Python decorators for data scientists by pizza on Tuesday May 24, 2022 @09:32AM (#31491852)
There's also reloadium [0] for tight dev iteration loops

https://reloadium.io