Skip to content

Commit

Permalink
Fixed bug in bokeh comm message handler
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Mar 7, 2018
1 parent 4bde590 commit 5f1a695
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions holoviews/plotting/bokeh/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
if ("{plot_id}" in HoloViews.receivers) {{
var receiver = HoloViews.receivers["{plot_id}"];
}} else if (Bokeh.protocol !== undefined) {{
}} else if (Bokeh.protocol === undefined) {{
return;
}} else {{
var receiver = new Bokeh.protocol.Receiver();
Expand Down Expand Up @@ -277,7 +277,7 @@ def _figure_data(self, plot, fmt='html', doc=None, as_script=False, **kwargs):
b64 = base64.b64encode(data).decode("utf-8")
(mime_type, tag) = MIME_TYPES[fmt], HTML_TAGS[fmt]
src = HTML_TAGS['base64'].format(mime_type=mime_type, b64=b64)
data = tag.format(src=src, mime_type=mime_type, css='')
div = tag.format(src=src, mime_type=mime_type, css='')
js = ''
else:
try:
Expand All @@ -292,7 +292,7 @@ def _figure_data(self, plot, fmt='html', doc=None, as_script=False, **kwargs):

plot.document = doc
if as_script:
return data, js
return div, js
return data


Expand Down

0 comments on commit 5f1a695

Please sign in to comment.