def system_piped(self, cmd):
    "Call the given cmd in a subprocess, piping stdout/err\n\n        Parameters\n        ----------\n        cmd : str\n            Command to execute (can not end in '&', as background processes are\n            not supported.  Should not be a command that expects input\n            other than simple text.\n        "
    if cmd.rstrip().endswith('&'):
        raise OSError('Background processes not supported.')
    self.user_ns['_exit_code'] = system(self.var_expand(cmd, depth=1))
Call the given cmd in a subprocess, piping stdout/err

Parameters
----------
cmd : str
    Command to execute (can not end in '&', as background processes are
    not supported.  Should not be a command that expects input
    other than simple text.
def system_piped(self, cmd):
    "Call the given cmd in a subprocess, piping stdout/err\n\n        Parameters\n        ----------\n        cmd : str\n            Command to execute (can not end in '&', as background processes are\n            not supported.  Should not be a command that expects input\n            other than simple text.\n        "
    if cmd.rstrip().endswith('&'):
        raise OSError('Background processes not supported.')
    self.user_ns['_exit_code'] = system(self.var_expand(cmd, depth=1))