### Navigation

- index
- modules |
- next |
- previous |
- IPython 0.10.2 documentation »
- The IPython API »

# 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__`()
  `close`()

    This method is there for compatibility with other file-like objects.

  `closed` = False
  `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`()

### Navigation

- index
- modules |
- next |
- previous |
- IPython 0.10.2 documentation »
- The IPython API »