Skip to content

Commit 8a029c5

Browse files
authored
enh: Support param.rx with hvplot.show (#1651)
1 parent 0fa15bf commit 8a029c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hvplot/utilities.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,10 @@ def show(obj, title=None, port=0, **kwargs):
130130
return _pn.pane.HoloViews(obj).show(title, port, **kwargs)
131131
elif isinstance(obj, _pn.viewable.Viewable):
132132
return obj.show(title, port, **kwargs)
133+
elif isinstance(obj, param.rx):
134+
return _pn.panel(obj).show(title, port, **kwargs)
133135
else:
134-
raise ValueError('{type(obj).__name__} type object not recognized and cannot be shown.')
136+
raise ValueError(f'{type(obj).__name__} type object not recognized and cannot be shown.')
135137

136138

137139
class hvplot_extension(_hv.extension):

0 commit comments

Comments
 (0)