Skip to content

Commit 81736bb

Browse files
authored
Merge pull request #3737 from martinRenou/fix_kernel_attr_check
Fix kernel attribute check
2 parents 05bdab2 + 0e062da commit 81736bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ipywidgets/ipywidgets/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
def get_comm_manager():
3131
ip = get_ipython()
3232

33-
if ip is not None and ip.kernel is not None:
33+
if ip is not None and getattr(ip, "kernel", None) is not None:
3434
return get_ipython().kernel.comm_manager
3535

3636
from .widgets import *

0 commit comments

Comments
 (0)