Skip to content

Commit

Permalink
Compatibility fix for bokeh 0.12.6 webgl handling (#1505)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored and jlstevens committed Jun 1, 2017
1 parent be31282 commit d697f4c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion holoviews/plotting/bokeh/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,11 @@ def _init_plot(self, key, element, plots, ranges=None):
properties['tools'] = tools
properties['toolbar_location'] = self.toolbar

properties['webgl'] = Store.renderers[self.renderer.backend].webgl
if bokeh_version < '0.12.6':
properties['webgl'] = self.renderer.webgl
elif self.renderer.webgl:
properties['output_backend'] = 'webgl'

with warnings.catch_warnings():
# Bokeh raises warnings about duplicate tools but these
# are not really an issue
Expand Down

0 comments on commit d697f4c

Please sign in to comment.