PyViz is an initiative for making Python-based visualization tools work well together - includes holoviews, geoviews, datashader, hvplot, panel, colorcet, param and imagen.
Questions tagged [pyviz]
75 questions
11
votes
1 answer
How do i automatically update a dropdown selection widget when another selection widget is changed? (Python panel pyviz)
I have a Select widget that should give a different list of options whenever another Select widget is changed, so it updates whenever this other Select widget changes. How do I this in the example code below?
_countries = {
'Africa': ['Ghana',…

Sander van den Oord
- 10,986
- 5
- 51
- 96
7
votes
1 answer
Panel + Param: FileInput widget and @param.depends interaction
I can't seem to figure out the syntax for triggering a function upon someone using a FileInput widget in a Parameterized class.
I understand that FileInput isn't a param itself, but I looked at the code for it and the value attribute is a generic…

miguelandrs
- 73
- 1
- 3
6
votes
1 answer
What is the best way to change the widget type in an hvplot/holoviews/panel object?
Using the functionality in pyviz, it's easy to generate an hvplot/panel interactive dashboard for a gridded xarray dataset, like this air temperature data example:
import xarray as xr
import hvplot.xarray
import panel as pn
airtemps =…

Rich Signell
- 14,842
- 4
- 49
- 77
6
votes
2 answers
Panel/Hvplot interaction when variable is changing
I'm trying to create a dashboard with two holoviews objects: a panel pn.widgets.Select object that contains a list of xarray variables, and a hvplot object that takes the selected variable on input, like this:
def hvmesh(var=None):
mesh =…

Rich Signell
- 14,842
- 4
- 49
- 77
5
votes
1 answer
Creating and displaying pyvis graph from django app running sql backend
This is moreso a question about pyvis graphs, but also involves a django server running with a sqlite3 backend. One of my views needs to produce an interactive pyvis graph and display it in the clients browser. I can do this without the django app…

Gavin Ray
- 129
- 1
- 7
5
votes
1 answer
How to handle node click in PyViz/datashader network samples?
I looked at datashader/Networks and PyViz/network_packets (which also uses datashader). I want to get a callback to python code on node selection (call a function on a node id, i.e. fun(node_id)). How can this be done in PyViz/datashader?

DuckQueen
- 772
- 10
- 62
- 134
5
votes
1 answer
Embedding Panel app within Flask - figure not updating when widget changes
I am trying to embed a Panel app within a Flask app. I am struggling to get the app to update when the widget changes. To reproduce the issue I have used the sea temperature example from Bokeh which is included in the Panel docs.
The Panel app works…

rob_sp
- 71
- 4
5
votes
1 answer
HoloViews DynamicMap hover tool does not update with chosen variable
I'm learning HoloViews with the Bokeh backend and am making an iPython/Jupyter display of the chosen column of a pandas DataFrame (actually it's an xarray Dataset but it's simpler to show the issue with a DataFrame). The issue is that when I chose…

Dan
- 1,105
- 12
- 15
5
votes
2 answers
Regression line for holoviews scatter plot?
I'm creating a scatter plot from an xarray Dataset using
scat = ds.hvplot.scatter(x='a', y='b', groupby='c', height=900, width=900)
How can I add a regression line to this plot?
I'm also using this to set some of the properties in the plot and I…

Rob
- 1,336
- 1
- 15
- 24
4
votes
2 answers
Use Holoviz Panel Dropdown value to query dataframe
I am trying to use a Holoviz Panel dropdown widget value to query a dataframe. The dataframe however does not reflect the change in the dropdown value. I added a markdown widget to check if the change in the dropdown value is being captured - It…

sri40
- 41
- 2
4
votes
1 answer
How to display text output from function in Panel Pyviz widgets?
This seems like a basic question but I've tried for a while and not found a solution with Pyviz Panel:
I'm trying to trigger functions with a click of a button, catch the outputs of functions and print them on the screen at desired locations.
The…

Nirjhor Chakraborty
- 125
- 1
- 12
4
votes
1 answer
Trigger event on mouseup instead of continuosly with panel slider widget
How can a function watch for value changes of a panel.widgets.IntSlider, but only trigger when the mouse is released rather than continuously as the slider is dragged around?
I have tried callback_policy='mouseup' and decorated the function with…

joelostblom
- 43,590
- 17
- 150
- 159
3
votes
1 answer
Move Holoviews Charts elements in layout below hv.Div element containing title
I have a hv.Div element containing text regarding the title a report I am working on. When I combine my holoview chart elements together with the hv.Div element I can't seem to push the chart elements below the hv.div element. Does anyone know how…

Amen_90
- 310
- 2
- 9
3
votes
1 answer
Sync HoloViews VLine with PyViz Panel audio.time
I want to visualize in a HoloViews plot where the current audio is in the graph. This line should update automatically when PyViz's pn.pane.Audio.time value is changed (when audio is being played or Audio.time is changed).
My attempt:
# Python 3.7…

NumesSanguis
- 5,832
- 6
- 41
- 76
3
votes
1 answer
Altair plot not showing when using Panel
I am following this tutorial [github] on using Panel and Altair.
The function which returns my plot is the following:
@pn.depends(ticker.param.value, date_range_slider.param.value)
def get_plot(ticker, date_range):
df = data.stocks()
…

nluigi
- 1,263
- 2
- 15
- 35