Skip to content

Commit 415d2a1

Browse files
authored
Merge pull request #3732 from pllim/patch-1
BUG: comm.kernel should be None when it has no kernel
2 parents 885838a + 8123715 commit 415d2a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ipywidgets/ipywidgets/widgets/widget_output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def __enter__(self):
111111
kernel = None
112112
if ip and getattr(ip, "kernel", None) is not None:
113113
kernel = ip.kernel
114-
elif self.comm is not None and getattr(self.comm, 'kernel', True) is not None:
114+
elif self.comm is not None and getattr(self.comm, 'kernel', None) is not None:
115115
kernel = self.comm.kernel
116116

117117
if kernel:

0 commit comments

Comments
 (0)