We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dx
Description
dx charts are flickering on every update within a panel, even with memoization
Steps to reproduce
Run the following code
from deephaven import ui import deephaven.plot.express as dx from deephaven import agg iris = dx.data.iris() @ui.component def create_chart(): return dx.histogram(iris, x="SepalLength") @ui.component def flickering_memo(): chart = ui.use_memo(lambda: create_chart(), []) text, set_text = ui.use_state(False) return [ ui.button(text, on_press=lambda: set_text(not text)), chart ] output = flickering_memo()
Then click the button
Expected results
Button changes value but chart does not change at all
Actual results
Chart quickly flickers
Versions
Engine Version: 0.37.1 Web UI Version: 0.99.2 Python Version: 3.8.19 Java Version: 19.0.1 Groovy Version: 3.0.22 Barrage Version: 0.7.2 Browser Name: Chrome 131 User Agent OS: macOS 10.15.7 @deephaven/js-plugin-plotly-express: 0.12.0 @deephaven/js-plugin-ui: 0.23.1
The text was updated successfully, but these errors were encountered:
It's worth noting that the flickering is because of @ui.component
@ui.component
This does not flicker:
from deephaven import ui import deephaven.plot.express as dx from deephaven import agg iris = dx.data.iris() def create_chart(): return dx.histogram(iris, x="SepalLength") @ui.component def flickering_memo(): chart = ui.use_memo(lambda: create_chart(), []) text, set_text = ui.use_state(False) return [ ui.button(text, on_press=lambda: set_text(not text)), chart ] output = flickering_memo()
Sorry, something went wrong.
No branches or pull requests
Description
dx
charts are flickering on every update within a panel, even with memoizationSteps to reproduce
Run the following code
Then click the button
Expected results
Button changes value but chart does not change at all
Actual results
Chart quickly flickers
Versions
Engine Version: 0.37.1
Web UI Version: 0.99.2
Python Version: 3.8.19
Java Version: 19.0.1
Groovy Version: 3.0.22
Barrage Version: 0.7.2
Browser Name: Chrome 131
User Agent OS: macOS 10.15.7
@deephaven/js-plugin-plotly-express: 0.12.0
@deephaven/js-plugin-ui: 0.23.1
The text was updated successfully, but these errors were encountered: