每次执行错误时,Jupyter Notebook 崩溃,但在笔记本上不显示错误,但在 Jupyter 提示符上显示。
它迫使我每次都重新启动笔记本并执行所有单元格。
[IPKernelApp] ERROR | Exception in message handler:
Traceback (most recent call last):
File "/Users/<username>/.pyenv/versions/<venv-name>/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3251, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "/var/folders/2n/9hgs5nvd6p35c_rzn95txrph00xv/T/ipykernel_7095/881478447.py", line 1, in <module>
1+"letters"
TypeError: unsupported operand type(s) for +: 'int' and 'str'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/<username>/.pyenv/versions/<venv-name>/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 1934, in showtraceback
stb = value._render_traceback_()
AttributeError: 'TypeError' object has no attribute '_render_traceback_'