Skip to content

Commit

Permalink
Merge pull request #1469 from ioam/bokeh_app_fix
Browse files Browse the repository at this point in the history
Fix for BokehRenderer.server_doc for plots with widgets
  • Loading branch information
jlstevens authored May 22, 2017
2 parents 9388c12 + 92fd04c commit 9e1f7d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holoviews/plotting/bokeh/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,13 @@ def server_doc(self, plot, doc=None):
"""
if doc is None:
doc = curdoc()
root = plot.state
if isinstance(plot, BokehServerWidgets):
plot = plot.plot
plot.document = doc
plot.traverse(lambda x: attach_periodic(plot),
[GenericElementPlot])

doc.add_root(plot.state)
doc.add_root(root)
return doc


Expand Down

0 comments on commit 9e1f7d6

Please sign in to comment.