import plotly.graph_objects as go
from IPython.display import display, clear_output
f = go.FigureWidget()
f.add_scatter(y=[1, 2, 3, 4]);
display(f)
An invalid trace βtrace 1β will be created
Trace 0 and Trace 1 are overlapped, just update Trace 0, to see the diff