Although I’ve found a bunch of examples showing how to connect an iPywidget to a plotly graph, they all seem to use a GraphWidget which requires a URL. I have a simple line/scatter plot with two traces and want to shift one of the traces left or right based on the value of an ipywidget slider. I have it partly working in that when I move the slider I can get a new scatter plot with one of the traces correctly shifted. However, I haven’t been able to figure out how to update/refresh the graph that is currently displayed to use the modified data. Subsequent calls to iplot() after changing the trace create additional copies of the graph. I tried putting the plotly scatter in an output widget and clearing the Scatter and replacing it with a new one, which doesn’t result in many copies of the scatter but is unusably “clunky”, not to mention inefficient to recreate the entire figure every time the slider moves.