ipywidgets is a library in the Jupyter and IPython projects. It provides an API for creating and using interactive widgets.
Interactive Widgets are interactive controls, including:
- Slider
- Controls (Toggle)
- Text box (Text)
- selector
- etc.
The main function:
- Provide rich widgets controls
ipywidgets supports many common widgets, including the four mentioned above as well as date pickers, pop-up windows, etc.
- Easy to create custom widgets
ipywidgets provides the ability to create custom widgets.
- Keep widgets in sync between notebook and web app
Widgets are interactive both in Jupyter notebooks and standalone web applications.
- Interaction between widgets
Connections can be established between widgets, and a change in one widget will change another widget.
- Integration with φ and
Widgets can be easily integrated with JupyterLab and Jupyter Notebook.
A typical example:
from ipywidgets import widgets
slider = widgets.Slider(mi