The issue was that the Entropy Dashboard was not "hot reloading" itself when code files (such as user generated Python files containing PlotGenerator classes). The reason for this was that we've switched from serving the Dashboard using Dash's built-in Flask server to serving using waitress and this made "hot reloading" fail somehow.
This PR re-introduces hot reloading using the hupper monitoring library.
Acceptance test:
Run the Dashboard on a database where you have an experiment plotted with a custom PlotGenerator class.
Make a change to the PlotGenerator code that should be visible in the Dashboard.
Observe that the Dashboard browser page refreshes itself within 1-5 seconds and the change is visible.
This PR resolves issue https://github.com/entropy-lab/entropy/issues/186.
The issue was that the Entropy Dashboard was not "hot reloading" itself when code files (such as user generated Python files containing
PlotGenerator
classes). The reason for this was that we've switched from serving the Dashboard using Dash's built-in Flask server to serving using waitress and this made "hot reloading" fail somehow.This PR re-introduces hot reloading using the hupper monitoring library.
Acceptance test:
PlotGenerator
class.PlotGenerator
code that should be visible in the Dashboard.