Skip to content

Commit

Permalink
BUG: comm.kernel should be None when it has no kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim authored Mar 22, 2023
1 parent 885838a commit 8123715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/ipywidgets/ipywidgets/widgets/widget_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def __enter__(self):
kernel = None
if ip and getattr(ip, "kernel", None) is not None:
kernel = ip.kernel
elif self.comm is not None and getattr(self.comm, 'kernel', True) is not None:
elif self.comm is not None and getattr(self.comm, 'kernel', None) is not None:
kernel = self.comm.kernel

if kernel:
Expand Down

0 comments on commit 8123715

Please sign in to comment.