3 ms·
Watching your video, I see a bit of a start with errors and inspection, but there's SO much more you can do there. I no longer know what the best implementatio
by ianbicking 6y ago
Watching your video, I see a bit of a start with errors and inspection, but there's SO much more you can do there.
I no longer know what the best implementations of web-based error handling are, but this 15 year old(!) approach still seems to beat the state of the art in notebooks: https://github.com/cdent/paste/blob/master/paste/exceptions/errormiddleware.py https://github.com/cdent/paste/blob/master/paste/exceptions/...
You have a rich interface, showing textual tracebacks is unnecessary!
I'd do inspectable values as well (not just relying on __repr__, but making any top-level object interactively inspectable), but that's more involved. But probably worth it!