Panel is an open-source Python library that lets you create custom interactive web apps and dashboards by connecting user-defined widgets to plots, images, tables, or text.
Questions tagged [panel-pyviz]
49 questions
2
votes
1 answer
Python Panel Button Callback Function
So, I'm trying to build a Dashboard with the python Panel library, so far I have not had problems creating interaction between some widgets and plots except for the Button Widget. I have two functions which I want to be executed when a respective…

Xhoan
- 310
- 2
- 5
- 13
1
vote
0 answers
Is it possible to implement an async method in StructuredTool with from_function?
I am looking at the recent blog post/ docs for StructuredTool and understand that I could implement a class from BaseTool with arun method. Is this possible somehow using from_function? This is my very first tool and the full class implementation is…

lalligagger
- 41
- 4
1
vote
0 answers
hvplot variable coordinate quadmesh
I have an Xarray Dataset which looks like
I would like to be able to select data variables (which i already know how to do) and plot a quadmesh of the data variable selected. The problem is that different data variables have different numbers and…

Curious
- 383
- 3
- 13
1
vote
1 answer
How to sync a bokeh/panel animation with a video player like dash.js?
I am using bokeh and panel to create an animated plot together with some navigation controls like a slider, play/pause, skip 5s, etc.
At the same time, there is video footage which I would like to display in sync with that animation. I started…

Ansgar T.
- 111
- 6
1
vote
0 answers
holoviz/holoviews/panel: default setting of axes limits of a holomap "layouted" in separate panes
I would like to know what would be the best way to have elements that are part of the same holomap layout but on separate panel panes have their axes limits computed the same way like when the entire layout is rendered.
It is simpler with the…

Pierre Massé
- 693
- 1
- 5
- 23
1
vote
1 answer
holoviz/param/panel: updating Str or HTML panes via python callback
I would like to know if there is a way to update a panel pane content through a python callback.
If I define a Parameterized custom class the following way:
import panel as pn
pn.extension()
import param
class Myclass(param.Parameterized):
…

Pierre Massé
- 693
- 1
- 5
- 23
1
vote
1 answer
python holoviews layout tabs with columns
I have here a very simplified example:
plot = []
for d in range(2):
name=str(d)
data = pd.DataFrame({'x':[2,5,1], 'y':[3,1,6], 'm':[1,2,3]})
x = hv.Curve(data, 'm', 'x', label=name)
y = hv.Curve(data, 'm', 'y', label=name)
uu =…

mati
- 1,093
- 4
- 12
- 18
1
vote
1 answer
How to resize Tab name area in Pyviz Panel
I'm trying to create a tab layout using Pyviz-Panel (example code below) in a Jupyter notebook. I'd like to keep the size of individual tab names the same.
However, tab.width changes/sets the size of the overall window for the Tabs set.
Even…

Nirjhor Chakraborty
- 125
- 1
- 12
1
vote
2 answers
How arrange pyviz panel widgets in a gridspec without any borders?
I would like to arrange pyviz panel widgets with the help of a gridspec. Expected result is a screen without any borders. In the example the green areas match nicely, however there is a (white) border around the blue widget ? How can I remove it ?…

Marcel Flygare
- 837
- 10
- 19
1
vote
0 answers
Interactive map doesn't show up
I want to create a map with tickers like X has made here.
So I tried to plot my map using geoviews:
import os, numpy as np, pandas as pd, cartopy.crs as ccrs, bokeh
import holoviews as hv, geoviews as gv, datashader as ds
from colorcet import…

Revolucion for Monica
- 2,848
- 8
- 39
- 78
1
vote
1 answer
How to serve multiple apps simultaneously with Panel/PyViz?
I've been exploring this problem of how to write a suite of small utilities but serve them up together. It's like writing multiple little .py files that each gives us a panel app, but I wanted to serve them up via a single Docker container with a…

ericmjl
- 13,541
- 12
- 51
- 80
1
vote
0 answers
Customization of panel.pane.Audio element
is there a way to customize the panel.pane.Audio element?
I've tried to pass arguments like width or height like:
pn_audio = pn.pane.Audio(audio_data, sample_rate=sps, width=800)
but with no effect after starting as bokeh app.
Here is some usable…

Th3tom3kK
- 11
- 2
1
vote
1 answer
How to Successfully Produce Mosaic Plots in Pyviz Panel Apps?
I have created the following dataframe df:
Setup:
import pandas as pd
import numpy as np
import random
import copy
import feather
import matplotlib.pyplot as plt
from statsmodels.graphics.mosaicplot import mosaic
import plotly.graph_objects as…

mmTmmR
- 573
- 2
- 8
- 20
1
vote
0 answers
holoviews table - adding custome tooltips
Im building a dashboard using Panel, Holoviews and Bokeh.
One of the widgets in the dashboard is a table - which I create by using hv.Table.
This table is a part of an interact widget and current layout works fine.
Now I want to add tooltips to…

yoav_aaa
- 367
- 2
- 11
1
vote
1 answer
Why is my plot updated by panel (twice) when I change a button setting that shouldn't trigger any updates? (Panel Holoviz)
I made a class to explore and train models.
When I change the value of dropdown 'choose_model_type' in the code example below, I would expect nothing to change in my dashboard, since there are no @param.depends('choose_model_type', watch=True) in my…

Sander van den Oord
- 10,986
- 5
- 51
- 96