I am trying to allow the user to edit a date displayed in a Tabulator. However, the value of the date chosen is always one day behind the date selected/shown. Are there any workarounds or is there something I’m doing wrong?
You can observe the behavior with the following code:
string = pn.widgets.StaticText()
test_df = pd.DataFrame(data={'Column1': dt.date(2024, 11, 11)}, index=[0])
test_date_tbl = pn.widgets.Tabulator(
test_df, disabled=False, editors = {'Column1': bokeh.models.widgets.tables.DateEditor()}, selectable=True, formatters={'Column1': DateFormatter(format='%m-%d-%Y'')})
def tbl_update(event):
string.param.update(value=f'New {event.column} value is {event.value}')
test_date_tbl.on_edit(tbl_update)
pn.Column(test_date_tbl, string )
I’m on Panel version 1.4.4 and bokeh version 3.4.1. Timezone is EST.
As I understand it Panel 1.5 will address a bunch of issues regarding Tabulator. Don’t know if this is one of them though.
See link below.
There are 58 open issues related to component tabulator of label bugs. I am using this component extensively in my applications so this is getting to be a show stopper for my users.
Tabulator issues marked bugs
Its a complex component so I don’t even know where to start to workaround the issues (selection, esp. when sorting and filtering)
Any roadmap on when some of the major ones are going to be tackled?
I looked through the link and I didn’t see a logged bug that looked like it addresses this behavior. Do you know what the process is for logging bugs?
Could you please open an issue Issues · holoviz/panel · GitHub ? Reporting the problem you stated here, how to reproduce it, and with a screenshot?