However, the speed of the transition between each frame is too fast. I’ve tried adjusting pretty much every occurrence of the ‘duration’ parameter to be both higher and lower than in the code sample, but the animation speed on my graph hasn’t changed. Does anyone have any tips on how to adjust the animation speed? Am I adjusting the wrong parameter? What unit is the duration number in?
I am experiencing the same issue. Were you ever able to resolve it? What I have discovered is that the duration parameters only seem to take effect if I pause the animation then play it again. The initial playthrough on page load does not seem to be impacted by any duration parameters I can find. I also tried to deactivate autoplay, but I couldn’t find an option to do this in the Python API, though this seems to be an option in the JS API.
I had this issue when using the to_html() function. It worked in a notebook but not when using the to_html(). The issue was with the auto play that is true by default for to_html. The duration parameter set for any button (the “Play” button, for example) is not applied to the auto play functionality. So when debugging and changing the the duration it seemed not to have any effect. However, when I paused and played it did take effect (i.e. when the animation is started from the play button press).
There were two solutions for me:
Turn off auto play and then the duration functioned as expected.