{ } Raw JSON

bundles / ipykernel latest / ipykernel / iostream / OutStream / _watch_pipe_fd

function

ipykernel.iostream:OutStream._watch_pipe_fd

source: /ipykernel/iostream.py:461

Signature

def _watch_pipe_fd(self)

Summary

We've redirected standards streams 0 and 1 into a pipe.

Extended Summary

We need to watch in a thread and redirect them to the right places.

  • the ZMQ channels to show in notebook interfaces,

  • the original stdout/err, to capture errors in terminals.

We cannot schedule this on the ioloop thread, as this might be blocking.

Aliases

  • ipykernel.iostream.OutStream._watch_pipe_fd