Live stdout output from Python subprocess in Jupyter notebook
The ipython notebook has it’s own support for running shell commands. If you don’t need to capture with subprocess stuff you can just do cmd = ‘ls -l’ !{cmd} Output from commands executed with ! is automatically piped through the notebook.