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
0
votes
1 answer
Pyviz panel: can't work with FileInput widget
I must be missing something basic about how FileInput widget works in pyviz panel.
In the following code, I let the user select a csv file and the number of rows to display. If a file isn't selected, I generate some random data.
import pandas as…

Boris Gorelik
- 29,945
- 39
- 128
- 170
0
votes
1 answer
Separate TAP and HOVER tool for Edges of hv.Graph. Edge description data is missing
Trying to get hv graph with ability to tap edges separately from nodes. In my case - all meaningful data bound to edges.
gNodes = hv.Nodes((nodes_data.x,nodes_data.y, nodes_data.nid, nodes_data.name),\
vdims=['name'])
gGraph =…

Dimas51
- 19
- 3
0
votes
1 answer
Does a DynamicMap callable always have to return the same type?
The below code makes it seem like the callable passed to a DynamicMap can not change the Element type. When changing the category widget to B a Curve element is returned instead of Points, but the plot is just empty. Is this behavior not supported…

rindis
- 869
- 11
- 25
0
votes
1 answer
Strange behaviour when function returns NdOverlay to DynamicMap
I've encountered something very strange when having a function which generates an NdOverlay of Points to a DynamicMap, where the function is tied to panel widgets (I don't think the panel widgets are important).
The below code is a working example…

rindis
- 869
- 11
- 25
0
votes
1 answer
Geoviews - Plot heat map using tabular data
I have point data in the following tabular format (3 columns, any number of rows):
| Latitude | Longitude | Temperature |
How can I interpolate values to get a heat map like this:
Instead of point data like this:

CodeWarrior
- 1,239
- 1
- 14
- 19
0
votes
1 answer
Prevent the colormap to be rescaled when using datashader to rerender an image as it is zoomed in
I want to use datashader's automatic downsampling and rerendering upon zoom to display large images. Reading the docs and forums for holoviews, bokeh, and datashader, it is my understanding that it is preferable to do this via Holoviews instead of…

joelostblom
- 43,590
- 17
- 150
- 159
0
votes
1 answer
Return the value of Panel's slider widget
I'm using Panel's slider widget to inspect some data and I want to use the values of this widget as an argument of other functions.
I built my own code based on this one:
import hvplot.pandas
import panel as pn
import holoviews as hv
from…

lsdR94
- 35
- 1
- 5
0
votes
1 answer
synchronize selection of > 1 chart
How do I synchronize the selection in the 2 charts below? Also, how do I get the bounds of the box selection?
import holoviews as hv
import hvplot.pandas
from bokeh.sampledata.autompg import…

user1860166
- 208
- 2
- 5
0
votes
1 answer
Using pyviz in a jupyternotebook as a form, put input in nested list and show contents
im trying to use pyviz in a jupyter notebook to create some sort of form for others to populate with data.
this data then is to be saved to a nested list on the click of the save button. then you repeat it for every person.
then i need a button to…

IE404
- 11
- 1
- 4
0
votes
0 answers
Interactive dataframe scatter plot in a standalone script (without jupyter)
TL/DR : What I am trying to do:
Use dataframe (large existing dataset in df)
Run as a stand alone script (no jupyter)
Be able to easily interact/explore the data
Simple but full example (seen lots of code snippets that end up not working)
In the…

stephenmm
- 2,640
- 3
- 30
- 48
0
votes
2 answers
Pyviz Panel Examples Returning Attribute Errors
Working through the Panel user guide - any example on this page (https://panel.pyviz.org/user_guide/Components.html) that uses .extend does not seem to be working and is returning
AttributeError: 'Tabs' object has no attribute 'extend'
And the…

BMichell
- 3,581
- 5
- 23
- 31
0
votes
1 answer
Export HoloViews `lasso tool` Selections to Pandas/CSV
I am trying to use a scatter plot in holoviews/hvplot to explore some data and then export things I select to a file... basically so I can tag it and/or show it to an expert.
I am able to make a scatter plot and a table that is linked and shows the…

Matt Camp
- 1,448
- 3
- 17
- 38
0
votes
1 answer
Overlay NdOverlays while keeping color / changing marker
I want a scatter plot of different types of "asset", each asset should have the same color and labeled in the legend. I can do this using an NdOverlay of Scatter. Then I want to overlay two such plots, eg one coming from a model and another from…

George Moutsopoulos
- 298
- 3
- 8
0
votes
1 answer
How to use a toggle button with a callback (in an class) in PyViz?
I am using PyViz / Panel in a notebook. Now I want to use a toggle button inside a class, and bind a callback to it.
This code - outside a class - is working:
import panel as pn
import panel.widgets as pnw
pn.extension()
toggle =…

mdk
- 398
- 2
- 8
0
votes
1 answer
Why am I getting an empty output object in Panel?
I have a parameterized input data class that outputs a loaded model into the next stage of pipeline:
class InputData(param.Parameterized):
# placeholders for the incoming parameters
load_sim_widget =…

kcp
- 45
- 8