This is a development version (9.18.0.dev) and may be unstable.Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.18.0.dev / IPython / utils / io / Tee

class

IPython.utils.io:Tee

source: /IPython/utils/io.py:17

Signature

class Tee(file_or_name: str | StringIO, mode: str = w, channel: str = stdout)

Members

Summary

A class to duplicate an output stream to stdout/err.

Extended Summary

This works in a manner very similar to the Unix 'tee' command.

When the object is closed or deleted, it closes the original file given to it for duplication.

Aliases

  • IPython.utils.io.Tee