Plotly-Dash: How to show the same selected area of a figure between callbacks?
问题 Consider a plotly figure where you can select polynomial features for a line fit using JupyterDash: If you select an area and then choose another number for polynomial features, the figure goes from this: ... and back to this again: So, how can you set things up so that the figure displays the same area of the figure every time you select another number of features and trigger another callback? Complete code: import numpy as np import plotly.express as px import plotly.graph_objects as go