title: How to 'print' python output 'live' to Flask?
body: <p>i wrote a little flask app which takes some informations via a webform and
  when clicking the submit button it perfoms some tasks on a network device.
  After this is finished, it shows the results of the tasks.</p>
  <p>Every task has it's own function.</p>
  <p>ATM all the user sees is some kind of a loading .gif file while the tasks are performed.</p>
  <p>This is okay, but it would be great if the output of every function could be shown 'live' on the webpage. Of course, printing to console works but how can i achive to get this output to my html in flask?</p>
  <p>let's assume the fuctions which are performed on the device are:</p>
  <pre><code>ping() -&gt; returns True/False
  </code></pre>
  <pre><code>connection_to_device() -&gt; returns True/False (and error if error occurs)
  </code></pre>
  <pre><code>get_info() (returns a string, but it takes some waiting time since the info does not show up instantly)
  </code></pre>
  <p>would be great if one could guide me to the right direction.</p>
  <p>thank you in advance.</p>