-
-
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
Support .collate for DynamicMaps? #1188
Comments
A dynamic collate should be something we try to get ready for 1.7. I agree it is important and we can shift the assigned milestone if it turns out to be too tricky. |
Now implemented, assigning to @jlstevens to document. |
Will do! |
I'll try to come up with an example. |
As a start, can you show how to make the above code work? I just tried with the latest master and the same code that didn't work above with or without |
This has now been implemented and I fixed a bug related to adding more plots to a collated Layout. Going to close this and will be adding some examples to our list of stream examples. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The example on the holoviews.org home page shows how to use
.collate()
to turn the illegal "HoloMap of Layouts" construction into the displayable "Layout of HoloMaps", which is very convenient in practice. However,.collate()
does not seem to be supported for DynamicMaps.Here's an example of what I'd want to use that for:
Right now, I can easily view one static image along with a slider-controlled dynamic map, but I have to pick a single HoloViews object to return from the callback:
But what I want is to make one single callback that returns a Layout of both the two dynamic plots above:
Unfortunately, that doesn't work, whether I call
.collate()
(see output below) or not. Of course, I can construct multiple DynamicMaps, using multiple callbacks, but they both need to share the same kernel_pattern state, so I'd also need to make a class to hold that state and change the callbacks to be methods on the object with the shared state. That's ugly, a lot of code, and a pain to set up. Can we just make.collate()
work on DynamicMaps, and then people can write one callback to handle all the dynamic stuff in a given final Layout?The text was updated successfully, but these errors were encountered: