Skip to content

Commit

Permalink
Make Kernel._eventloop_set not a class attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Feb 27, 2025
1 parent 3984e68 commit c1cc359
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ipykernel/kernelbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,14 @@ def _parent_header(self):
"list_subshell_request",
]

_eventloop_set = threading.Event()
_eventloop_set: threading.Event

def __init__(self, **kwargs):
"""Initialize the kernel."""
super().__init__(**kwargs)

self._eventloop_set = threading.Event()

# Kernel application may swap stdout and stderr to OutStream,
# which is the case in `IPKernelApp.init_io`, hence `sys.stdout`
# can already by different from TextIO at initialization time.
Expand Down

0 comments on commit c1cc359

Please sign in to comment.