This is a development version (9.14.0.dev) and may be unstable. Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.14.0.dev / IPython / utils / _process_common / get_output_error_code

function

IPython.utils._process_common:get_output_error_code

source: /IPython/utils/_process_common.py :164

Signature

def   get_output_error_code ( cmd : str | list[str] )  →  tuple[str, str, int | None]

Summary

Return (standard output, standard error, return code) of executing cmd in a shell.

Extended Summary

Accepts the same arguments as os.system().

Parameters

cmd : str or list

A command to be executed in the system shell.

Returns

stdout : str
stderr : str
: returncode: int

Aliases

  • IPython.core.interactiveshell.get_output_error_code