Newest 'pyviz' Questions - Stack Overflow

Questions tagged [pyviz]

PyViz is an initiative for making Python-based visualization tools work well together - includes holoviews, geoviews, datashader, hvplot, panel, colorcet, param and imagen.

0
votes
1answer
7 views

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 autompg ...
-1
votes
0answers
15 views

How to use Panel Pipeline to make a dashboard?

I am trying to make a stand-alone dashboard for GUI (the user inputs information in widgets and it graphs itself once inputted.) I do not really know how to start with the examples that are giving on ...
0
votes
0answers
6 views

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 ...
0
votes
0answers
8 views

hvplot heatmap ordering axis

Question is, can I order the axis of a heatmap in hvplot? I have the following code: df['col_1'] = df.col_1.astype(int).astype('category') df['col_2'] = df.col_1.astype(int) heatmap = df.hvplot....
1
vote
1answer
53 views

View vs. Viewable with displaying widget

I am putting together an interactive dashboard using the pyviz ecosystem. One feature of the dashboard is that the underlying data may change based on a widget selector. Below is an example code ...
1
vote
1answer
19 views

hvplot - how to colour point data by categorical variable and aggregate with `ds.count_cat(.)`

I am trying to recreate the datashader census categorical examples with hvplot. import cartopy.crs as ccrs import datashader as ds import dask.dataframe as dd import hvplot.dask ddf = dd....
2
votes
1answer
28 views

Can I control the inline css created by Bokeh (or remove it completely)?

I'm creating a dashboard in PyViz panel, which uses bokeh under the hood as far as I understand. It is easy to use and I quickly get to a 90% solution, but the final layout is easier (for me) to just ...
1
vote
1answer
27 views

How to pass values of a single widget to multiple instances of one object in Panel/Bokeh

I build a dashboard to plot parts of a dataset, and it works when I declare every single component. As oall my plots are similar, with only changes being the title and the key to select the dataset to ...
0
votes
0answers
52 views

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 ...
0
votes
1answer
23 views

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: '...
0
votes
1answer
35 views

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 ...
0
votes
1answer
13 views

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 ...
0
votes
1answer
41 views

How to display holoviews table with many columns completely

I have some DataFrames with many columns. When I try to visualize them with holoviews.Table, only the first columns are displayed. For test purposes I created a DataFrame with 50 columns. import ...
0
votes
1answer
52 views

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,...
0
votes
1answer
82 views

Panel widgets do not update plot

I'm trying to use panel widgets inside a class in order to change a plot. The example below outputs the plot once, but when I select a different variable from the widget it doesn't update the plot. ...
0
votes
1answer
64 views

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....
1
vote
0answers
86 views

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 ...
0
votes
1answer
70 views

Specifying the default value in widgets generated by pyviz hvplot

I've got a 4D dataset and hvplot is nicely generating widgets for the dimensions I've specified in the groupby: import xarray as xr ds = xr.open_dataset('http://gamone.whoi.edu/thredds/dodsC/...
4
votes
1answer
74 views

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....
0
votes
1answer
59 views

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 ...
0
votes
1answer
102 views

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 ...
3
votes
2answers
176 views

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, ...