We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5f1dfc commit 9c9fbc6Copy full SHA for 9c9fbc6
ipykernel/iostream.py
@@ -383,6 +383,9 @@ def _watch_pipe_fd(self):
383
384
"""
385
386
+ if self._fid is None:
387
+ return
388
+
389
try:
390
bts = os.read(self._fid, PIPE_BUFFER_SIZE)
391
while bts and self._should_watch:
@@ -434,6 +437,7 @@ def __init__(
434
437
)
435
438
# This is necessary for compatibility with Python built-in streams
436
439
self.session = session
440
+ self._fid = None
441
if not isinstance(pub_thread, IOPubThread):
442
# Backward-compat: given socket, not thread. Wrap in a thread.
443
warnings.warn(
0 commit comments