MCPcopy Create free account
hub / github.com/ipython/ipython / init_io

Method init_io

IPython/core/interactiveshell.py:846–856  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

844 self.object_info_string_level)
845
846 def init_io(self):
847 # This will just use sys.stdout and sys.stderr. If you want to
848 # override sys.stdout and sys.stderr themselves, you need to do that
849 # *before* instantiating this class, because io holds onto
850 # references to the underlying streams.
851 # io.std* are deprecated, but don't show our own deprecation warnings
852 # during initialization of the deprecated API.
853 with warnings.catch_warnings():
854 warnings.simplefilter('ignore', DeprecationWarning)
855 io.stdout = io.IOStream(sys.stdout)
856 io.stderr = io.IOStream(sys.stderr)
857
858 def init_prompts(self):
859 # Set system prompts, so that scripts can decide if they are running

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected