title: Javascript library for displaying Python console app output
body: <p>I'm writing a <strong>simple web-based front-end</strong> for a Python <strong>console program</strong> that runs on a local machine. The interactions are extremely simple. Essentially, the web front-end needs to:</p>
  
  <ol>
  <li>Accept input from the user (through an AJAX form or something).</li>
  <li>Pass this input to the Python program and run it.</li>
  <li>Display the output of the Python console program <em>while it is running</em>, until it terminates. </li>
  </ol>
  
  <p>The first two can be accomplished quite easily (though suitable AJAX library recommendations would be helpful). </p>
  
  <p><strong>Question</strong>: What Javascript library would I need to accomplish No. 3? </p>
  
  <hr>
  
  <p><strong>Remarks</strong>: </p>
  
  <ul>
  <li>I am aware of packages like <code>AJAXterm</code> and <code>Shellinabox</code>, but instead of a full-shell, I just want to <em>display</em> the output of the Python console program; essentially I'd like a way to pipe Python's stdout to a web-page in real-time. </li>
  </ul>