-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Correctly sync shared datasources #1254
Conversation
holoviews/plotting/bokeh/plot.py
Outdated
def update_frame(self, key, ranges=None): | ||
""" | ||
Update the internal state of the Plot to represent the given | ||
key tuple (where integers represent frames). Returns this | ||
state. | ||
""" | ||
source_cols = self.handles.get('source_cols', {}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
@@ -1224,6 +1224,45 @@ def test_shared_axes_disable(self): | |||
self.assertEqual((x_range.start, x_range.end), (-.5, .5)) | |||
self.assertEqual((y_range.start, y_range.end), (-.5, .5)) | |||
|
|||
def test_layout_shared_source_synced_update(self): | |||
hmap = HoloMap({i: Dataset({chr(65+j): np.random.rand(i+2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comments and check source_cols is A, B, C, D
Happy to merge once you've addressed those two comments. |
92fc617
to
380d263
Compare
Addressed the comments, ready to merge when tests pass. |
Had to restart the tests due to transients but they are all passing now. Merging. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Adds a context manager which ensures that while updating a composite plot any datasources shared among multiple subplots are appropriately synced, avoiding warnings and bokehjs errors. Fixes #1135.