Skip to content

Commit

Permalink
Merge pull request #745 from ioam/bokeh_serialize_bug
Browse files Browse the repository at this point in the history
Fix bokeh event sorting in py3
  • Loading branch information
jbednar committed Jun 30, 2016
2 parents a38a163 + 0598632 commit bfde7e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/plotting/bokeh/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def compute_static_patch(document, models, json=None):

events.append((priority, event))
update_types[obj['type']].append(key)
events = [e for _, e in sorted(events)]
events = [e for _, e in sorted(events, key=lambda x: x[0])]
value_refs = {ref_id: val for ref_id, val in value_refs.items()
if val['type'] not in IGNORED_MODELS}
return dict(events=events, references=list(value_refs.values()))
Expand Down

0 comments on commit bfde7e6

Please sign in to comment.