I'd like to run a new command from IPython configuration and capture its output. Basically, I'd like to access the equivalent of !command via normal functions. I know I can just use subprocess, but since IPython already provides this functionality, I guess there must be a properly made wrapper included somewhere in the API.
1 Answer 1
Apparently, such wrapper can be called via ip.IP.getoutput("command").
answered Aug 4, 2010 at 21:23
viraptor
34.4k13 gold badges117 silver badges205 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-py