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

Fixed comm creation and stream subscriber attachment #1274

Merged
merged 1 commit into from
Apr 11, 2017

Conversation

philippjfr
Copy link
Member

Previously the top_level plot attached itself as a subscriber to all the streams found on the plot. Apart from being inefficient because any change to a stream would trigger replotting of the whole Layout, this could cause issues with one plot triggering range updates on another even though the second plot hadn't changed at all.

In this PR each subplot is given access to the comm which means each subplot can be responsible for updating themselves.

@jlstevens
Copy link
Contributor

That description makes sense as does the solution. There isn't too much changed code either.

That said, I think the only way we can be sure that everything is working properly is by merging ASAP and building lots of stream examples.

@jlstevens
Copy link
Contributor

Test have passed. Want to add some unit tests (might be tricky) or should I just merge?

@philippjfr
Copy link
Member Author

philippjfr commented Apr 11, 2017

There are some unit tests, which actually caught a bug in my initial attempts at this. So yes, I think it's ready to merge.

@jlstevens jlstevens merged commit 0628872 into master Apr 11, 2017
@philippjfr philippjfr deleted the stream_comm_attach branch April 19, 2017 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants