osscar-org / scicode-widgets

A collection of widgets to prepare interactive scientific visualisations, including user code input and validation
https://osscar-org.github.io/scicode-widgets/
BSD 3-Clause "New" or "Revised" License
3 stars 2 forks source link

Fix for nested errors are not correctly resolved #62

Closed agoscinski closed 1 month ago

agoscinski commented 1 month ago

When an exception is thrown within a WCI, the last frame is used as context to add the input lines. This does not work if the exception is thrown within a function within WCI. Therefore we now iterate through all traceback frames to find the one corresponding to WCI.

The corresponding PR in WCI https://github.com/osscar-org/widget-code-input/pull/26 to solve it there.


📚 Documentation preview 📚: https://scicode-widgets--62.org.readthedocs.build/en/62/