fix(sdk): clean up IPython's widget deprecation warning
import logging
import sys
+import warnings
from typing import Optional
import wandb
@@ -103,6 +104,8 @@ def jupyter_progress_bar(min: float = 0, max: float = 1.0) -> Optional[ProgressW
try:
if widgets is None:
# TODO: this currently works in iPython but it's deprecated since 4.0
+ with warnings.catch_warnings():
+ warnings.simplefilter("ignore")
from IPython.html import widgets # type: ignore
assert hasattr(widgets, "VBox")
