Ensure we do not push if embedded in root.tags
@@ -244,8 +244,8 @@ class Plot(param.Parameterized):
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)
@@ -265,6 +265,8 @@ class Plot(param.Parameterized):
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
