An invalid trace was added even for Hello Word

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

Hi, welcome to the forums.

I’m afraid I can’t reproduce this in Plotly 5.23.0 - are you using an earlier version?

1 Like