question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
philippjfrcommented, May 21, 2021

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

0reactions
jlstevenscommented, Mar 7, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Panel/Hvplot interaction when variable is changing
but when I try to display the map, I get: Exception: Nesting a DynamicMap inside a DynamicMap is not supported. It would seem...
Read more >
Panel plots are not updating from widget inputs
I'm trying to build a POC app with a map (plotly.choropleth_mapbox) that updates given inputs from widgets (a slider, a text box, a...
Read more >
I prefer to use Panel for my data apps. Here is why. - Medium
I am Marc Skov Madsen. I have a passion for interactive data analysis and data apps. And a lot of experience across frameworks....
Read more >
A tour (of a small part) of the Python visualization landscape
Take you from exploratory work ows smoothly to interactive dashboards ... Also note that Panel widgets are reactive, so they will update even...
Read more >
Interactive wxmplot displays - wxPython+matplotlib
This means that not only can you zoom in, change themes, etc from the Plot window, you can can also easily plot other...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found