How can I animate a line chart for Gradient Descent?

Hi @andfanilo, just as an update, I’ve now made some progress on that and Altair works really nicely.

I’ve stumbled across another issue thought that prevents me from selecting animation method (I’ve implemented it so I can select either Matplotlib, Altair, Plotly or No Animation (to run quickly).

I’ve raised the issue here not sure if you could help shed some light?

I’ve followed a similar approach to the thread here whereby I have introduced a “Predict” Button for the Gradient Descent method, then a Selectbox for the Plotting method, and then another “Go” Button for executing the animation. It seems that the combination of Predict --> Select --> Go doesn’t work as the Select method doesn’t work other than the first option in the Select dropdown. Every other option takes me back to the Predict button as if it wasn’t assigned.

What am I doing wrong here? :frowning: :disappointed: