Skip to content

Commit

Permalink
Ensure we do not push if embedded in root.tags (#4177)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jan 10, 2020
1 parent 6ba6709 commit 5780148
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions holoviews/plotting/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ def push(self):

if self.renderer.backend != 'bokeh' and child_pane is not None:
child_pane.object = self.renderer.get_plot_state(self)
elif ((self.renderer.mode != 'server' or (root and 'embedded' in root.tags))
and self.document and self.comm):
elif (self.renderer.mode != 'server' and root and
'embedded' not in root.tags and self.document and self.comm):
push(self.document, self.comm)


Expand All @@ -265,6 +265,8 @@ def __len__(self):
def lookup_options(cls, obj, group):
return lookup_options(obj, group, cls.backend)



class PlotSelector(object):
"""
Proxy that allows dynamic selection of a plotting class based on a
Expand Down

0 comments on commit 5780148

Please sign in to comment.