External tools stdout not shown during execution
<p>I am calling python scripts from android studio as external tools.</p>

<p>Only after the script has exited, its stderr/stdout is displayed in the integrated Android Studio "Run" tool window. I want to be able to see the output during execution. (How) is that possible?</p>

<p><a href="http://i.stack.imgur.com/Gw1xn.png" rel="nofollow"><img src="http://i.stack.imgur.com/Gw1xn.png" alt="edit external tools"></a></p>

<p>Running Python in unbuffered mode (<code>-u</code>) fixxed it
- first Line of my python script: </p>

<pre><code>#! /usr/bin/python3 -u
</code></pre>

<p>Thanks for the solution to Serge Baranov from Jetbrains support:</p>

<blockquote>
  <p>Sep 21, 16:23 MSK</p>
  
  <p>Could it be caused by the buffered output? See
  <a href="http://stackoverflow.com/a/230780/104891">http://stackoverflow.com/a/230780/104891</a>.</p>
</blockquote>

python android-studio intellij-idea