What does %matplotlib widget do?

In lab 3, what does the line: %matplotlib widget do?
From what I’ve read till now, I understand that %matplotlib is a magic command but what does it do when widget is added to it?

It is also a magic command that is used to enable interactive widgets for matplotlib plots, such as sliders, buttons, and so forth.

1 Like