Skip to content

Commit

Permalink
Add unit to widget in HoloViews pane if provided (#5535)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoMathurin authored Sep 25, 2023
1 parent d45ea9e commit e6d470f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion panel/pane/holoviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,8 @@ def widgets_from_dimensions(cls, object, widget_types=None, widgets_type='indivi
options = list(vals)
widget_type = widget_type or Select
default = vals[0] if dim.default is None else dim.default
widget_kwargs = dict(dict(name=dim.label, options=options, value=default), **widget_kwargs)
widget_name = dim.pprint_label
widget_kwargs = dict(dict(name=widget_name, options=options, value=default), **widget_kwargs)
widget = widget_type(**widget_kwargs)
elif dim.range != (None, None):
start, end = dim.range
Expand Down

0 comments on commit e6d470f

Please sign in to comment.