Skip to content

Commit c1cc359

Browse files
committed
Make Kernel._eventloop_set not a class attribute
1 parent 3984e68 commit c1cc359

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ipykernel/kernelbase.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,14 @@ def _parent_header(self):
235235
"list_subshell_request",
236236
]
237237

238-
_eventloop_set = threading.Event()
238+
_eventloop_set: threading.Event
239239

240240
def __init__(self, **kwargs):
241241
"""Initialize the kernel."""
242242
super().__init__(**kwargs)
243243

244+
self._eventloop_set = threading.Event()
245+
244246
# Kernel application may swap stdout and stderr to OutStream,
245247
# which is the case in `IPKernelApp.init_io`, hence `sys.stdout`
246248
# can already by different from TextIO at initialization time.

0 commit comments

Comments
 (0)