Skip to content
Advertisement

Why matplotlib slider not working in Colab?

I’ve stuck with an issue that I have a slider but It’s not interactive, I followed by documentation but even ready solution didn’t worked, how to solve that? Not worked in Google Colab and Jupyter Notebook. I have already tried to change matplotlib backend kernel from qt to ktinker but nothing

my code :

JavaScript

My aim is to get a graph with working sliders ,so that I can change values of my parameters interactively. The problem is that sliders aren’t works, they appears as a picture not an interactive object

Advertisement

Answer

I’ve never used sliders or buttons in Colab, but by running your code and introducing the two-point library from the error message, the graph and slider buttons are now enabled.

JavaScript

enter image description here

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement