Path: blob/main/doc/how_to/components/widget_from_values.md
2012 views
Construct Widgets from Data
This guide discusses how to automatically generate widget from data.
When working with data, be it in the form of lists, arrays or DataFrames it is common to want to filter that data. Manually computing the start
and end
values of a slider or the unique values of a dropdown can be an annoyance so widgets have a classmethod
called from_values
to help with this.
As we can see the special constructor automatically inferred both the option
and the name
for the widget.
Similarly we can also use this to infer the values of a numeric column:
Related Resources
Learn about building interactive data pipelines How-To > Interactivity -> .