%md With ipywidgets, you can add interactive controls to your plots. The [decorator](https://ipywidgets.readthedocs.io/en/latest/examples/Using%20Interact.html) lets you define interactive widgets with a single line of code.
After you run the cell below, the plot appears with on the y-axis and the default value on the x-axis. Because the default value of , the plot includes a regression line.
You can use the widget selectors above the plot to select a different value for the x-axis and turn on or off the regression line. As you make selections using the widget, changes are reflected immediately in the plot.
For details about the different types of ipywidgets, see [the ipywidgets documentation](https://ipywidgets.readthedocs.io/en/7.7.0/index.html).
ipywidgets examples
This notebook illustrates how you can use interactive ipywidgets in Databricks notebooks. The examples use one of the datasets that is built-in to Databricks.
For more information about ipywidgets, see the ipywidgets documentation.
This notebook steps through how a data scientist might browse a new dataset. To skip directly to examples of ipywidgets, go to Cell 10.
Requirements
Databricks Runtime 11.0 or above.