I used px to make a animation we can change the speed in the jupyter notebook. But the speed does NOT change when saving as html file. How to change the following code?
import plotly.express as px
df = px.data.gapminder()
fig=px.scatter(df, 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])
fig.layout.updatemenus[0].buttons[0].args[1]["frame"]["duration"] = 50000