jonescompneurolab / hnn-core

Simulation and optimization of neural circuits for MEG/EEG source estimates
https://jonescompneurolab.github.io/hnn-core/
BSD 3-Clause "New" or "Revised" License
53 stars 52 forks source link

GUI callbacks error messages are not logged #699

Open gtdang opened 8 months ago

gtdang commented 8 months ago

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.