You are viewing an older version (9.2.0).Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.2.0 / IPython / utils / io / Tee

class

IPython.utils.io:Tee

source: /dev/ipython/IPython/utils/io.py:22

Signature

class Tee(file_or_name, mode = w, channel = 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