Plotly express scatter webgl render_mode does not seem to work

Hi guys,

I am trying to run the gapminder bubble animation example from here, but with scatter render_mode set to ‘webgl’.

My modified code is:

import plotly.express as px
gapminder = px.data.gapminder()
fig = px.scatter(gapminder, x="gdpPercap", y="lifeExp", animation_frame="year", animation_group="country",
           size="pop", color="continent", hover_name="country",
           log_x=True, size_max=55, range_x=[100,100000], range_y=[25,90],
           render_mode='webgl')
fig.show()

What I am observing in the resulting figure is that the animation stays stuck on the first frame, despite the year slider moving along as expected.
Any ideas about what could be going on here?
Thanks

That sounds like a bug… would you be able to open an issue at https://github.com/plotly/plotly.py/issues/new please?

1 Like

No problem, done.
Thanks