title: Add output to interactive Python console blocks in Sphinx docs?
body: <p>How can I add the output to interactive Python console blocks in Sphinx docs?</p>
  
  <p>For example, so I can do something like:</p>
  
  <pre><code>First set the variable::
  
      &gt;&gt;&gt; x = 1
  
  Then print the variable::
  
      &gt;&gt;&gt; print x
  </code></pre>
  
  <p>And have Sphinx automatically insert the output of <code>print x</code> into the documentation?</p>
  
  <p>I've tried:</p>
  
  <ul>
  <li><code>sphinxcontrib-autorun</code> <a href="https://pypi.python.org/pypi/sphinxcontrib-autorun/0.1-20140415" rel="nofollow">https://pypi.python.org/pypi/sphinxcontrib-autorun/0.1-20140415</a> — but it runs each block in a separate interpriter</li>
  <li><code>IPython.sphinxext.ipython_directive</code> — but it forces IPython syntax instead of the "traditional" Python console.</li>
  </ul>
  
  <p>Is there anything else that can do this?</p>