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

Can't slice an redim'ed DynamicMap #3085

Open
basnijholt opened this issue Oct 12, 2018 · 1 comment
Open

Can't slice an redim'ed DynamicMap #3085

basnijholt opened this issue Oct 12, 2018 · 1 comment
Labels

Comments

@basnijholt
Copy link
Contributor

The following doesn't work

dmap = hv.DynamicMap(lambda X, Y: hv.Scatter([(X,Y)]), kdims=['X', 'Y']).redim.values(X=[0, 1, 2], Y=[2, 3, 4])
hv.HoloMap(dmap[:, :])

it only prints

:HoloMap   [X,Y]

This will fix qt/adaptive/issues/113

@philippjfr
Copy link
Member

@jlstevens I know we explicitly didn't allow this when we simplified DynamicMap a while ago but I think there is good reason to expand [:] into all the values if they are defined on the dimension. Having to define the values twice just to sample the space seems redundant and quite a hassle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants