Animation not working in jupyter notebook in vscode

I was following the example of animation on plotly website:

The chart can be rendered in a jupyter notebook in vscode, but the animation is not responsive at all.

The same chart in the same jupyter notebook cannot even be rendered in jupyter notebook opened in Anaconda…

May I ask how to solve this issue?

1 Like

i have the same problem

1 Like

import as px
df =
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”].pop(“updatemenus”) # optional, drop animation buttons‘notebook’)

1 Like

Same problem here! When the play button is invoked all data are frozen!

See microsoft/vscode-jupyter#4364 (comment) for a work around