intellij-ideaconsoleprogress-barpycharmstdout

stdout progress bars don't work in Pycharm


Many programs display progress bars by printing to stdout and then returning to beginning of line and printing again. This way they can achieve realtime progress bar appearence.

Unfortunately, in many cases this functionality does not work in PyCharm's console.

This is an example on how it shows keras train progress bar:

enter image description here

i.e. each progress bar change goes to separate line.

Is it possible to fix this?


Solution

  • CrazyCoder's comment is the right way to go.

    I just formalize his comment as an answer here.


    Step1: Go to Run ---> Edit Configurations

    enter image description here

    Step2: Check the option: Emulate terminal in output console

    enter image description here

    VoilĂ 

    enter image description here