It's pretty darn neat. I'm going to play around with it a little more over the weekend.
Reloadr – Hot code reloading tool for Python
21–30 of 58 posts
Re: Reloadr – Hot code reloading tool for Python
#22(just kidding)
Re: Reloadr – Hot code reloading tool for Python
#23Having a hot reloaded set up for both my django (It's built in) environment and Web app environment is such a force multiplier. It's not about simply saving time doing it manually. It fundamentally changes my dev-test/experiment workflow. I love being able to tab to a server file, make a change, tab to a client file, make another change, and instantly test it in a browser.
Have you tried PHP? :) I jest, but really I feel like we've made things so complicated it just gets in our way. Our Javascript pipeline is huge, complicated, and requires you to sit down and wrap your head around it every time you want to modify it. If I get to greenfield another project, it's going to be so bloody simple.
It's always simple when it starts up. It's after months/years of iterating without having a decent battle plan that it becomes complicated.
Re: Reloadr – Hot code reloading tool for Python
#24Having a hot reloaded set up for both my django (It's built in) environment and Web app environment is such a force multiplier. It's not about simply saving time doing it manually. It fundamentally changes my dev-test/experiment workflow. I love being able to tab to a server file, make a change, tab to a client file, make another change, and instantly test it in a browser.
Have you tried PHP? :) I jest, but really I feel like we've made things so complicated it just gets in our way. Our Javascript pipeline is huge, complicated, and requires you to sit down and wrap your head around it every time you want to modify it. If I get to greenfield another project, it's going to be so bloody simple.
Re: Reloadr – Hot code reloading tool for Python
#25 from importlib import reload as r
Then in the ipython shell you can type r(module) to reload the entire thing.So I'll often have the editor in one terminal window, and ipython in the other one, save the code and switch back the repl, and type r(t)
import mymodule as t
Now tie in some ipdb [1] and you have a pretty sweet setup. Also depending on your serving framework it might also have hot reloading as well, tornado, flask, etc.[1] https://github.com/gotcha/ipdb
[2] https://www.tornadoweb.org/en/stable/autoreload.html https://werkzeug.palletsprojects.com/en/0.14.x/serving/
Re: Reloadr – Hot code reloading tool for Python
#26%load_ext autoreload %autoreload 2
now every run automatically reload your modules.
Re: Reloadr – Hot code reloading tool for Python
#27Re: Reloadr – Hot code reloading tool for Python
#28What are some simple use cases for this?
Say you have to load a lot of data, but once loaded you can trigger the issue by just hitting a button.
With hot code reloading you could incrementally add debugging code and try your fix, without having to restart the program and wait for the data to reload each time.
Re: Reloadr – Hot code reloading tool for Python
#29There's still some bugs I have to iron out, though, it should be better in a month or so. Still, you can pip install it if you want.
Re: Reloadr – Hot code reloading tool for Python
#30Last commit in Jan 2020. Is this project still active? Also ideally, not needing to decorate would be nice.