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

bundles / IPython latest / IPython / utils / io / Tee

class

IPython.utils.io:Tee

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

Signature

class   Tee ( file_or_name : Union[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