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

xarray interactive widgets don't update text when displayed with panel #607

Open
nitrocalcite opened this issue May 12, 2021 · 5 comments
Open
Assignees
Labels
interactive type: bug Something isn't working
Milestone

Comments

@nitrocalcite
Copy link

If I open up a dataset

import xarray as xr
import hvplot.xarray
import panel as pn
import panel.widgets as pnw

ds = xr.tutorial.open_dataset('air_temperature').load()

and try out interactive selection

ds.interactive.sel(lat=pnw.DiscreteSlider, lon=pnw.DiscreteSlider)

everything works great! But if I try to display the same object with Panel:

pn.Row(ds.interactive.sel(lat=pnw.DiscreteSlider, lon=pnw.DiscreteSlider))

Although the view of the dataset is updated, the text above the slider never updates.

ALL software version info

hvplot 0.7.1
holoviews 1.14.3
panel 0.11.3
bokeh 2.3.2

Description of expected behavior and the observed behavior

I expect the interactive slider text to update regardless of whether it's displayed with panel

@jbednar
Copy link
Member

jbednar commented May 12, 2021

I have the same expectation! Instead, it looks like you have to call the interactive object's layout method to get something to use with Panel:

pn.Row(ds.interactive.sel(lat=pnw.DiscreteSlider, lon=pnw.DiscreteSlider).layout())

That works, but I opened holoviz/panel#1824 to request that Panel just figure it out. The issue was closed in holoviz/panel#1900, but it seems like it should be reopened?

@jbednar jbednar added the type: bug Something isn't working label May 12, 2021
@jbednar jbednar added this to the 0.7.1 milestone May 12, 2021
@philippjfr
Copy link
Member

I can't reproduce any issue with this.

@philippjfr
Copy link
Member

Nevermind, I can reproduce your issue, @jbednar is just confusing this issue with the issue he filed a while back that was fixed.

@philippjfr philippjfr modified the milestones: 0.7.1, 0.7.2, 0.8 May 21, 2021
@philippjfr
Copy link
Member

Also probably a Panel issue.

@jlstevens jlstevens modified the milestones: 0.8, 0.81 Mar 7, 2022
@jlstevens
Copy link
Collaborator

@philippjfr Should this issue be moved to the panel repo then?

@maximlt maximlt modified the milestones: 0.8.2, 0.8.3 Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interactive type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants