Skip to content

Commit

Permalink
Update show method to return the configured Server | threading.Thread
Browse files Browse the repository at this point in the history
  • Loading branch information
dogbunny authored Jul 26, 2023
1 parent cfa578d commit 7e04313
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hvplot/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,14 @@ def show(obj, title=None, port=0, **kwargs):
Allows specifying a specific port
**kwargs: dict
Additional keyword arguments passed to Panel show method.
Returns
-------
a Server | threading.Thread (if threaded=true)
"""
if not isinstance(obj, _hv.core.Dimensioned):
raise ValueError('%s type object not recognized and cannot be shown.' %
type(obj).__name__)
_pn.pane.HoloViews(obj).show(title, port, **kwargs)
return _pn.pane.HoloViews(obj).show(title, port, **kwargs)


class hvplot_extension(_hv.extension):
Expand Down

0 comments on commit 7e04313

Please sign in to comment.