【发布时间】:2021-06-02 17:11:11
【问题描述】:
我想在运行 Python 3 内核的 Jupyter Notebook 中将警告转化为错误:
from warnings import warn, simplefilter
simplefilter('error')
虽然这在从命令行使用 Python 时有效,但这会使 Jupyter 崩溃。有没有人遇到过这个问题?有人知道解决方法吗?
谢谢
【问题讨论】:
-
我也崩溃了,你找到解决方案了吗?
标签: python python-3.x jupyter-notebook