def figure_data(self, plot, fmt="html", **kwargs): if not old_bokeh: doc = Document() doc.add_root(plot.state) plot.set_root(plot.state) plot.set_document(doc) return notebook_div(plot.state)
def figure_data(self, plot, fmt='html', **kwargs): if not old_bokeh: doc = Document() doc.add_root(plot.state) plot.set_root(plot.state) plot.set_document(doc) return notebook_div(plot.state)
def figure_data(self, plot, fmt='html', **kwargs): if not bokeh_lt_011: doc = Document() doc.add_root(plot.state) comms_target = str(uuid.uuid4()) doc.last_comms_target = comms_target div = notebook_div(plot.state, comms_target) return div else: return notebook_div(plot.state)