title: Running interactive command line code from Jupyter notebook
body: <p>There is an interesting option in Ipython Jupyter Notebook to execute command line statements directly from the notebook. For example:</p>
  
  <pre><code>! mkdir ...
  ! python file.py
  </code></pre>
  
  <p>Moreover - this code can be run using <code>os</code>:</p>
  
  <pre><code>import os
  os.system('cmd command')
  </code></pre>
  
  <p>but how do I run interactive shell commands. For example:</p>
  
  <pre><code>!conda install package
  </code></pre>
  
  <p>may require future input (<code>[Y]/N</code>) or folder location, but won't accept further input.</p>