Unable to show stack trace on Exception in Glue interactive session

0

When using https://docs.aws.amazon.com/glue/latest/dg/interactive-sessions.html in my jupyter notebook whenever an exception is raised I do not see any details:

def main():
    raise Exception("afdsa")

main()
# Exception: afdsa

When I do the same in normal python kernel I see stack trace and line number:

---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
Cell In [1], line 4
      1 def main():
      2     raise Exception("afdsa")
----> 4 main()

Cell In [1], line 2, in main()
      1 def main():
----> 2     raise Exception("afdsa")

Exception: afdsa

Is there a way to enable this?

Thank you.

gefragt vor einem Jahr63 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen