From cfdb9a0161fb9f9a20a08ec9dbc26b3b8abe84c0 Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Mon, 3 Mar 2025 14:24:13 -0800 Subject: [PATCH] Remove async activation magic in notebook_integration.py This has been the default for years and seems to no longer work --- adaptive/notebook_integration.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/adaptive/notebook_integration.py b/adaptive/notebook_integration.py index 165a84d82..782bc8552 100644 --- a/adaptive/notebook_integration.py +++ b/adaptive/notebook_integration.py @@ -7,7 +7,6 @@ import warnings from contextlib import suppress -_async_enabled = False _holoviews_enabled = False _ipywidgets_enabled = False _plotly_enabled = False @@ -21,7 +20,7 @@ def notebook_extension(*, _inline_js=True): "from a Jupyter notebook." ) - global _async_enabled, _holoviews_enabled, _ipywidgets_enabled + global _holoviews_enabled, _ipywidgets_enabled # Load holoviews try: @@ -51,11 +50,6 @@ def notebook_extension(*, _inline_js=True): stacklevel=2, ) - # Enable asyncio integration - if not _async_enabled: - get_ipython().magic("gui asyncio") # noqa: F821 - _async_enabled = True - def ensure_holoviews(): try: