Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miscellaneous stream fixes #2256

Merged
merged 3 commits into from Jan 11, 2018
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+7 −0
Diff settings

Always

Just for now

Prev

Reinitialize stream callbacks after syncing shared data sources

  • Loading branch information...
Philipp Rudiger Philipp Rudiger
Philipp Rudiger authored and Philipp Rudiger committed Jan 11, 2018
commit 329cd5a5aeccb1a4fecccbc8edc3bbd99ec5641b
@@ -56,6 +56,10 @@ def __init__(self, plot, streams, source, **params):
except AttributeError:
self.comm = Comm(plot)
self.source = source
self.reset()


def reset(self):
self.handle_ids = defaultdict(dict)
self.callbacks = []
self.plot_handles = {}
@@ -240,6 +240,9 @@ def sync_sources(self):
else:
renderer.update(source=new_source)
plot.handles['source'] = new_source
for callback in plot.callbacks:
callback.reset()
callback.initialize()
shared_sources.append(new_source)
source_cols[id(new_source)] = [c for c in new_source.data]
self.handles['shared_sources'] = shared_sources
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.