hnn-core icon indicating copy to clipboard operation
hnn-core copied to clipboard

GUI callbacks error messages are not logged

Open gtdang opened this issue 1 year ago • 0 comments

When errors occur within a callback function (a function that runs after a button click), the ipywidgets behavior is to back out of the button click. We recently noticed this behavior when trying to debug why plots were not being generated following a model run. While this behavior makes sense because a callback funciton error shouldn't crash the app, it didn't log the error. It was very difficult to debug as we had to step line-by-line to find the error.

These errors should be logged to the output console somehow.

gtdang avatar Dec 14 '23 19:12 gtdang