Skip to content

Commit 2820e1f

Browse files
authored
Remove async activation magic in notebook_integration.py (#473)
This has been the default for years and seems to no longer work.
1 parent 6ec39e1 commit 2820e1f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

adaptive/notebook_integration.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import warnings
88
from contextlib import suppress
99

10-
_async_enabled = False
1110
_holoviews_enabled = False
1211
_ipywidgets_enabled = False
1312
_plotly_enabled = False
@@ -21,7 +20,7 @@ def notebook_extension(*, _inline_js=True):
2120
"from a Jupyter notebook."
2221
)
2322

24-
global _async_enabled, _holoviews_enabled, _ipywidgets_enabled
23+
global _holoviews_enabled, _ipywidgets_enabled
2524

2625
# Load holoviews
2726
try:
@@ -51,11 +50,6 @@ def notebook_extension(*, _inline_js=True):
5150
stacklevel=2,
5251
)
5352

54-
# Enable asyncio integration
55-
if not _async_enabled:
56-
get_ipython().magic("gui asyncio") # noqa: F821
57-
_async_enabled = True
58-
5953

6054
def ensure_holoviews():
6155
try:

0 commit comments

Comments
 (0)