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.

posta un anno fa63 visualizzazioni
Nessuna risposta

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande