Skip to content
Permalink
Browse files

Fixed bokeh live plotting

  • Loading branch information...
Philipp Rudiger Philipp Rudiger
Philipp Rudiger authored and Philipp Rudiger committed Feb 8, 2016
1 parent c0d5ff5 commit 1b87c91e9e7cf35b267344ccd4a2fa91dd052890
Showing with 4 additions and 1 deletion.
  1. +1 −0 holoviews/plotting/bokeh/renderer.py
  2. +3 −1 holoviews/plotting/bokeh/widgets.py
@@ -75,6 +75,7 @@ def figure_data(self, plot, fmt='html', **kwargs):
comms_target = str(uuid.uuid4())
doc.last_comms_target = comms_target
div = notebook_div(plot.state, comms_target)
plot.document = doc
return div
else:
return notebook_div(plot.state)
@@ -46,11 +46,12 @@ def _plot_figure(self, idx, fig_format='json'):
if self.embed or fig_format == 'html' or bokeh_lt_011:
return self.renderer.html(self.plot, fig_format)
else:
doc = state.document
doc = self.plot.document

if hasattr(doc, 'last_comms_handle'):
handle = doc.last_comms_handle
else:
doc.add_root(self.plot.state)
handle = _CommsHandle(get_comms(doc.last_comms_target),
doc, doc.to_json())
doc.last_comms_handle = handle
@@ -61,6 +62,7 @@ def _plot_figure(self, idx, fig_format='json'):
else:
msg = Document._compute_patch_between_json(handle.json, to_json)
handle._json = to_json
print msg
handle.comms.send(json.dumps(msg))


0 comments on commit 1b87c91

Please sign in to comment.
You can’t perform that action at this time.