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.

已提问 1 年前63 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则