You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Need to implement hot reloading support in Dash for R #125
creating a hash at app initialization, and regenerating it on file change
adding a route to serve the hash
front-end hot reloading
back-end hot reloading (reload the app by restarting the fiery session)
adding parameters for the dev tools UI: dev_tools_hot_reload, dev_tools_hot_reload_interval, dev_tools_hot_reload_watch_interval, dev_tools_silence_routes_logging
On the Python side, we use the Flask debug reloader to reset the hash. fiery doesn't have native support for something like this feature, but it does allow "Custom Events" which can be manipulated to serve a similar purpose.
State-preserving hot reloading would be really nice to have, as noted in plotly/dash#460, but it has not been implemented in Dash for Python yet either.
Following discussions with @alexcjohnson, the PR to address this issue may be split into two parts:
Part I: basic support (ensure backend functionality is working)
Part II: full parity with Python implementation
Right now the following elements are working in some capacity:
tracking file changes
storing and generating the hash for the frontend
routing for the reload hash, and returning modified file list
cleaning up the logs using a custom logger so that _reload-hash chatter is omitted from logs and support for dev_tools_silence_routes_logging is possible
enabling restarts of the fiery server, for full reloading of the app (e.g. if app.R is modified, or non-CSS files are added)
@StalkComrade This feature is ready for use and available in the dev branch if you'd like to test it out before the next version of the package is released! 🙂
Activity
rpkyle commentedon Sep 5, 2019
@Stalkcomrade
rpkyle commentedon Sep 13, 2019
Following discussions with @alexcjohnson, the PR to address this issue may be split into two parts:
Right now the following elements are working in some capacity:
_reload-hashchatter is omitted from logs and support fordev_tools_silence_routes_loggingis possiblefieryserver, for full reloading of the app (e.g. ifapp.Ris modified, or non-CSS files are added)rpkyle commentedon Nov 1, 2019
@StalkComrade This feature is ready for use and available in the
devbranch if you'd like to test it out before the next version of the package is released! 🙂firasm commentedon Dec 3, 2019
Thanks @rpkyle, just to confirm is it
to get the dev version right?
rpkyle commentedon Dec 5, 2019
Hi @firasm ! Apologies for not catching this question sooner, but yes, that's the right branch -- I'd suggest installing with the lines
The next release is imminent, and hopefully you'll be able to obtain the package from CRAN in the very near future. For now, ☝️ will do the trick 🙂
rpkyle commentedon Jan 7, 2020
🌶 reloading is now available in
master, closing issue.