0
JupiterノートブックのPythonコードでトレースバックを隠したいので、エラーの種類とメッセージだけが表示されます。Jupyterでトレースバックを抑制するにはどうすればよいですか?
This answerはsys.tracebacklimit = 0
ことを示唆しているが、それは次与えしよう:また、カスタム関数でsys.excepthook
を置き換える提案したが、トレースバックはまだ表示されていた答え
ERROR:root:Internal Python error in the inspect module. Below is the traceback from this internal error. ERROR:root:Internal Python error in the inspect module. Below is the traceback from this internal error. Traceback (most recent call last): AssertionError Traceback (most recent call last): AssertionError
。
トレースバックを非表示にするにはどうすればよいですか?