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

Feature request: converting HoloMap to DynamicMap #882

Closed
basnijholt opened this issue Sep 23, 2016 · 7 comments
Closed

Feature request: converting HoloMap to DynamicMap #882

basnijholt opened this issue Sep 23, 2016 · 7 comments

Comments

@basnijholt
Copy link
Contributor

basnijholt commented Sep 23, 2016

I use DynamicMaps to show a lot of data, sometimes ~1000 plots with 7 variables.

I love how easy it is to compose a HoloMap, but it's not useful because rendering it takes a very very long time.

The DynamicMap offers a solution to this problem, but it's more cumbersome to write.

Putting a 1000 plots in a HoloMap is still quite cheap (just a couple of seconds), therefore I would like if I could just apply hv.DynamicMap on a hv.HoloMap to get the ease of use of a HoloMap, but at the speed of a DynamicMap.

@philippjfr
Copy link
Member

philippjfr commented Sep 23, 2016

You should just be able to create a DynamicMap from a HoloMap using:

hv.core.operation.DynamicFunction(hmap)

However is there any reason not to simply use:

%output widgets='live'

Edit: Thinking about it, live can be slow because creating a plot from a HoloMap can take a little while to compute all the ranges and other things.

@basnijholt
Copy link
Contributor Author

However is there any reason not to simply use:
%output widgets='live'

This is very slow and takes a few minutes before I see anything.

You should just be able to create a DynamicMap from a HoloMap using:
hv.core.operation.DynamicFunction(hmap)

That is great! I'll try it out 😄

@basnijholt
Copy link
Contributor Author

hv.core.operation.DynamicFunction(hmap)

Has a few problems still, it doesn't set the set of the dimensions:
screen shot 2016-09-23 at 15 11 47

screen shot 2016-09-23 at 15 11 52

@philippjfr
Copy link
Member

Thanks for the bug report, should be an easy fix.

@philippjfr
Copy link
Member

This function will be moved and renamed to hv.util.Dynamic in the next release.

@philippjfr
Copy link
Member

hv.util.Dynamic now exists and the bugs described here have been resolved. I will close, please reopen if you encounter any issues.

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants