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

bundles / IPython latest / IPython / utils / _process_common / get_output_error_code

function

IPython.utils._process_common:get_output_error_code

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

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