We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fd0588 commit 2e0efc1Copy full SHA for 2e0efc1
adaptive/notebook_integration.py
@@ -1,3 +1,5 @@
1
+from __future__ import annotations
2
+
3
import asyncio
4
import datetime
5
import importlib
@@ -76,7 +78,7 @@ def ensure_plotly():
76
78
raise RuntimeError("plotly is not installed; plotting is disabled.")
77
79
80
-def in_ipynb():
81
+def in_ipynb() -> bool:
82
try:
83
# If we are running in IPython, then `get_ipython()` is always a global
84
return get_ipython().__class__.__name__ == "ZMQInteractiveShell"
0 commit comments