You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But on lates jupyter console 6.6.3 (also qtconsole) it shows as:
In [1]: eg=ExceptionGroup('foo', [TypeError(10), ValueError(20)])
In [2]: raiseeg---------------------------------------------------------------------------ExceptionGroupTraceback (mostrecentcalllast)
CellIn[2], line1---->1raiseegExceptionGroup: foo (2sub-exceptions)
According to PEP 654 you have to recursively go through the ExceptionGroup.exceptions and display them all which can include more exception groups.
Side note. If you type ExceptionG<tab>, or Ex<tab><tab> it will not autocomplete the name ExceptionGroup. It will though autocomplete Exception at the 1st <tab>... Something to check why
The text was updated successfully, but these errors were encountered:
Python3.11 added the concept of exception groups and this is how the traceback is displayed on normal Python console:
But on lates jupyter console 6.6.3 (also qtconsole) it shows as:
According to PEP 654 you have to recursively go through the
ExceptionGroup.exceptions
and display them all which can include more exception groups.Side note. If you type
ExceptionG<tab>
, orEx<tab><tab>
it will not autocomplete the name ExceptionGroup. It will though autocomplete Exception at the 1st<tab>
... Something to check whyThe text was updated successfully, but these errors were encountered: