Panel: When Using Parameterized Class API, App Becomes Unresponsive After ListSelector/MultiChoice Has No Item Selected

Created on 30 Apr 2020  路  2Comments  路  Source: holoviz/panel

Hello,
I am fairly new to using Panel where I have been first learning to use the reactive API. Recently, I am learning about Panel's parameterized class API. Not sure if it is a bug or something I am doing wrong, but when I am using parameterized class API, my app becomes unresponsive or the chart won't update after my ListSelector widget or MultiChoice widget has no item selected. My chart is no longer responsive or updates afterwards. Here is my example notebook. So in my example, "Ohio" is the only state selected. So let's say I want to choose another state, I would deselect "Ohio", then select or choose another state. But after doing so, my app becomes unresponsive or the chart no longer updates. I have to re-run code cell #4 for the chart to update again. Everything else functionally works fine.

Expected Behavior: Even if no state is selected, I expect the app to remain responsive after I eventually select a state.

I have an equivalent example using reactive api, and my chart or dashboard will continue to work fine even after unselecting that singe item in the ListSelector/MultiChoice widget.

EDIT: Panel 0.9.5, bokeh 2.0.1

bug

All 2 comments

Hi @pybokeh,

I could reproduce that. At first I thought that altair didn't like so much when state_province was an empty list but it actually returns a plot in that case. You can check that with running app.plotAltairLineChart() below your dashboard .
image
I guess it's an issue with panel then.

Awesome! Such a quick response!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lrq3000 picture lrq3000  路  5Comments

davidpasquale picture davidpasquale  路  7Comments

MarcSkovMadsen picture MarcSkovMadsen  路  4Comments

pybokeh picture pybokeh  路  3Comments

MarcSkovMadsen picture MarcSkovMadsen  路  3Comments