From 963d832c06cc684369abb9cf9ca5099006ef67af Mon Sep 17 00:00:00 2001 From: Darshan Poudel Date: Thu, 16 Oct 2025 23:28:26 +0545 Subject: [PATCH] Fix warning filter for WindowsSelectorEventLoopPolicy --- jupyter_core/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()