Skip to content

Commit 8123715

Browse files
authored
BUG: comm.kernel should be None when it has no kernel
1 parent 885838a commit 8123715

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)