Plotly add_trace

Hello,

when using plotly with traces on the client side of anvil, I got the following error: NotImplementedError: add_trace is not yet implemented. First I thought I should only install the latest version of plotly, but this did not help.

Transform to appropriate dict types

x = strings_to_dates(obsdate, date_format=“%Y%m%d”)
y = replace_negative_999(strings_to_floats(tavg))
#ym = replace_negative_999(strings_to_floats(tmin))
#yx = replace_negative_999(strings_to_floats(tmax))

Create traces

trace1 = go.scatter(x=x, y=y, mode=‘markers’, name=‘avg’)
#trace2 = go.scatter(x=x, y=ym, mode=‘lines’, name=‘min’)
#trace3 = go.scatter(x=x, y=yx, mode=‘lines’, name=‘max’)

Create a Plotly figure and add traces

fig.add_trace(trace1)
#fig.add_trace(trace2)
#fig.add_trace(trace3)

Presumably Anvil has not yet implemented the translation to Javascript to work with traces? Am I right? Where can I look up what plotly version is currently implemented?

Thanks and regards,
Claudio