I can’t figure out why the plot don’t refresh when the slider is updated. I’m using Jupiter notebook and I choose the backend with ‘nbAgg’ parameter. Initialization code : There is a animation which lunch this function : The animation : Here the slider which stuck me : This below function don’t work as expected : Answer You can try