Questions tagged [panel-pyviz]

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.

49 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
5
votes
1 answer

`matplotlib` clickable plot in Panel row

I have figured out how to make a matplotlib graph clickable so that I can click a point and create a new plot based off of metadata for that point, following the answer here. Now it comes time to put that clickable plot in a Panel dashboard. The…
Dave
  • 314
  • 2
  • 13
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…
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
2 answers

How do i get my interactive Holoviews graph to display in Visual Studio (without Jupyter)?

I'm mainly using Jupyter Notebook / Lab when using Holoviews for interactive plotting. How do I make Visual Studio display my interactive graphs and panels, without using the Interactive Jupyter inside Visual Studio?
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
3
votes
1 answer

How do I stop a bokeh server / app started by panel in my jupyter lab or notebook? (without killing my kernel)

I've created an interactive app in my jupyter lab and called .show() on my panel object, so it started a bokeh server, as in the example below. It looks nice, but now I want to stop the server. How do I do that without stopping jupyter notebook or…
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
2
votes
0 answers

How to let options of panel.widgets.MultiSelect depend on other widget inputs

I have a multiple select widget, pn.widgets.MultiSelect, and I am trying to get that when its value is selected it updates the options of another pn.widgets.MultiSelect. This is very similar to How do i automatically update a dropdown selection…
user2957945
  • 2,353
  • 2
  • 21
  • 40
2
votes
2 answers

Interaction between panel and holoviews

I am working on a little widget with holoviews and panel - it consists of reading a pandas.dataFrame and display a curve for each column. The interaction I need is to be able to add/remove columns from the plot. In my real use case, there are too…
epifanio
  • 1,228
  • 1
  • 16
  • 26
2
votes
1 answer

Panel in Python - How to set the order that events are called

I am building a dashboard using panel and trying to figure out how to have a change of a control ("threshold" in the below class) fire a process that updates an attribute of the class before any other functions are called that will use that…
B_Miner
  • 1,840
  • 4
  • 31
  • 66
2
votes
1 answer

Holoviz/Param/Panel : is it possible to change, hide or delete the title of a param panel holding parameters from a Parameterized class?

I have defined a custom Parameterized class the folowing way: class Myclass(param.Parameterized): var1 = param.ObjectSelector( objects=['A', 'B', 'C'], default='B', label='Param1', ) seg3 =…
Pierre Massé
  • 693
  • 1
  • 5
  • 23
2
votes
0 answers

How to restrict range with Panel Pyviz datepicker?

I have a chart plotting datetime data between a Start and End date the user selects from 2 Panel datepickers. At the moment the user can select an End date than comes before the Start date, or a Start date that falls after the selected End date.…
Ally Alfie
  • 131
  • 11
2
votes
1 answer

How can I replace part of a panel via a selection change in a Bokeh figure?

Normally, I am able to replace parts of a panel via pop and insert, which updates any existing panels automatically. However, if these are triggered from a bokeh selected.on_change callback, existing panels do not update. For example, running the…
joelostblom
  • 43,590
  • 17
  • 150
  • 159
2
votes
1 answer

Panel + Param custom MultiFileSelector widget

I've tried and failed to convert the MultiFileSelector Param to into a widget that can be interacted with. From this tutorial, I have tried the following. class CustomExample(param.Parameterized): f =…
user17161
  • 21
  • 2
2
votes
1 answer

Vega plot not displaying within a holoviz panel in jupyter notebook

I find the holoviz panel a very interesting solution to building data visualisation dashboards. Unfortunately, I have some issues getting a vega plot of a node-link diagram to work within a panel in a jupyter notebook. The relevant imports…
Jan Aerts
  • 91
  • 4
1
2 3 4