Skip to content

Commit

Permalink
Calling widgets in html method to get html output
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Mar 23, 2018
1 parent 761919e commit c8a7a32
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions holoviews/plotting/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ def html(self, obj, fmt=None, css=None, **kwargs):
code to initialize a Comm, if the plot supplies one.
"""
plot, fmt = self._validate(obj, fmt)

if any(isinstance(plot, w) for w in self.widgets.values()):
return plot()

figdata, _ = self(plot, fmt, **kwargs)
if css is None: css = self.css

Expand Down

0 comments on commit c8a7a32

Please sign in to comment.