From the course: Python Data Visualization: Create Impactful Visuals, Animations, and Dashboards by Pearson

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

ipywidgets as interactive browser controls

ipywidgets as interactive browser controls

A simple way in which you can add a degree of interactivity to your visualizations is through the use of IPyWidgets. IPyWidgets is a Python package specifically for Jupyter Notebooks that allows you to add widgets to your Jupyter Notebooks. The way this works is that you have widgets that allow you to set the arguments to a function, And this function is in charge of generating the visualization every time the arguments change. Of course, you can still use matplotlib to do all the hard work of actually creating the visualization for you, or you can use any other library that you wish. There's a large number of widgets that you can use for different functionalities and different possibilities. You have widgets for numeric, Boolean, and string arguments, for selection widgets, slide controls, drop-down menus, et cetera. You have image widgets, button widgets, outputs, data and color pickers, file uploads, et cetera, et cetera. It's a whole world in and of itself. Interactive widgets…

Contents