This documentation covers IPython versions 6.0 and higher. Beginning with version 6.0, IPython stopped supporting compatibility with Python versions lower than 3.3 including all versions of Python 2.7.
If you are looking for an IPython version compatible with Python 2.7, please use the IPython 5.x LTS release and refer to its documentation (LTS is the long term support release).
Global IPython app to support test running.
We must start our own ipython object and heavily muck with it so that all the modifications IPython makes to system behavior don’t send the doctest machinery into a fit. This code should be considered a gross hack, but it gets the job done.
- class IPython.testing.globalipapp.StreamProxy(name)¶
Proxy for sys.stdout/err. This will request the stream at call time allowing for nose’s Capture plugin’s redirection of sys.stdout/err.
name (str) – The name of the stream. This will be requested anew at every call
Initialize self. See help(type(self)) for accurate signature.
- IPython.testing.globalipapp.xsys(self, cmd)¶
Replace the default system call with a capturing one for doctest.
Start a global IPython shell, which we need for IPython-specific syntax.