有没有一种方法可以防止警告以pdf或html文件形式打印?

时间:2019-03-15 13:41:37

标签: python jupyter-lab

我正在使用JupyterLab,并且在使用平方根或复数值时,python给出了RuntimeWarningComplexWarning。将文件保存为pdf或html时,有什么方法可以防止出现这些警告?

1 个答案:

答案 0 :(得分:1)

在脚本顶部:

user@master:~$ kubectl get componentstatus
NAME                 STATUS    MESSAGE
scheduler            Healthy   ok
controller-manager   Healthy   ok
etcd-2               Healthy   {"health": "true"}
etcd-1               Healthy   {"health": "true"}
etcd-0               Healthy   {"health": "true"}

Temporarily Suppressing Warnings

相关问题