diff --git a/jupyter_core/utils/__init__.py b/jupyter_core/utils/__init__.py index 75d1f07..0bff3ba 100644 --- a/jupyter_core/utils/__init__.py +++ b/jupyter_core/utils/__init__.py @@ -188,7 +188,7 @@ def ensure_event_loop(prefer_selector_loop: bool = False) -> asyncio.AbstractEve with warnings.catch_warnings(): warnings.filterwarnings( "ignore", - DeprecationWarning, + category=DeprecationWarning, message=".*WindowsSelectorEventLoopPolicy.*", ) loop = asyncio.WindowsSelectorEventLoopPolicy().new_event_loop()