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.
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.