I noticed that animation_button creates only a play function. There is no "pause" function. You can check any of the official examples: [plotly animation targets](https://plotly-r.com/interactives/animation-targets.html) The python version seems to be alright.