'Output stream that exceptions are written to.
Valid values are:
- None: the default, which means that IPython will dynamically resolve
to sys.stdout.  This ensures compatibility with most tools, including
Windows (where plain stdout doesn\'t recognize ANSI escapes).
- Any object with \'write\' and \'flush\' attributes.'

def _get_ostream(self):

    return (sys.stdout if (self._ostream is None) else self._ostream)
