We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 05bdab2 + 0e062da commit 81736bbCopy full SHA for 81736bb
python/ipywidgets/ipywidgets/__init__.py
@@ -30,7 +30,7 @@
30
def get_comm_manager():
31
ip = get_ipython()
32
33
- if ip is not None and ip.kernel is not None:
+ if ip is not None and getattr(ip, "kernel", None) is not None:
34
return get_ipython().kernel.comm_manager
35
36
from .widgets import *
0 commit comments