Submit your use case or success story to the 2023 edition of the Dataiku Frontrunner Awards ENTER YOUR SUBMISSION

Dash webapps: logging errors within callback code?

MarkPundurs
Level 3
Dash webapps: logging errors within callback code?

In a dash webapp, I was trying to filter a table by the value selected in a dropdown. It was silently failing to alter the table contents because in the callback function I was calling df.drop('colname') instead of df.drop(columns='colname'). The backend ran without reported error or log file entry.

How can I log such errors? It seems dash's app.run[_server] function has debugging options (https://dash.plotly.com/reference), but that function appears to be called behind the curtains in DSS.

0 Kudos
0 Replies