kernel.core.file_like

Module: kernel.core.file_like

Inheritance diagram for IPython.kernel.core.file_like:

File like object that redirects its write calls to a given callback.

FileLike

class IPython.kernel.core.file_like.FileLike(write_callback)

Bases: object

FileLike object that redirects all write to a callback.

Only the write-related methods are implemented, as well as those required to read a StringIO.

__init__(write_callback)
close()
This method is there for compatibility with other file-like objects.
flush()
This method is there for compatibility with other file-like objects.
getvalue()
This method is there for compatibility with other file-like objects.
isatty()
This method is there for compatibility with other file-like objects.
reset()
This method is there for compatibility with other file-like objects.
truncate()
This method is there for compatibility with other file-like objects.
writelines(lines)