PlotlyWidget.trait_values¶
-
PlotlyWidget.trait_values(**metadata)¶ A
dictof trait names and their values.The metadata kwargs allow functions to be passed in which filter traits based on metadata values. The functions should take a single value as an argument and return a boolean. If any function returns False, then the trait is not included in the output. If a metadata key doesn’t exist, None will be passed to the function.
- Returns
- Return type
A
dictof trait names and their values.
Notes
Trait values are retrieved via
getattr, any exceptions raised by traits or the operations they may trigger will result in the absence of a trait value in the resultdict.