Closed JulienLrx closed 6 months ago
Same problem with the dataframe widget (pn.widgets.DataFrame). Also the tabulator or the dataframe won't update anymore after a cell has been edited. (both with implicit and explicit linking)
simple exemple :
df = pd.DataFrame({
"selected": [True, False, True],
"Score": [3.14, 6.28, 9.42],
"Titre": ["TED1", "TED2", "TED3"]
}, index=[1, 2, 3])
df2 = pd.DataFrame({
"selected": [True, False, True],
"Score": [3.14, 6.28, 9.42],
"Titre": ["GGG1", "GGG2", "GGG3"]
}, index=[1, 2, 3])
def get_data(select):
if select == "test1":
return df
else:
return df2
select = pn.widgets.Select(name="base",options=["test1","test2"])
table = pn.widgets.DataFrame(pn.bind(get_data,select))
pn.FlexBox(select,table)
Duplicates #5513
Indeed it's a duplicate, closing in favor of https://github.com/holoviz/panel/issues/5513.
Editing a cell in the tabulator widget throw a key error.
python 3.11.8 Panel 1.4.1 Bokeh 3.4.0 jupyter-bokeh 4.0.1
simple code used to reproduce the error (error is thrown upon exiting the cell) :
stack :