Pycharm stdout progress bugs do not work

Many programs display progress indicators using prnting on stdout, and then return to the beginning of the line and reading again. Thus, they achieve real-time visibility.

Unfortunately, in many cases this feature does not work in the PyCharm console.

This is an example of how it shows the kera readiness indicator:

enter image description here

i.e. each change in the execution line goes to a separate line.

Can this be fixed?

+5
source share
2 answers

CrazyCoder comment is the right way.

I just made my comment as an answer here.


Step 1: Go to Run ---> Edit Configurations

enter image description here

Step 2. Check the parameter: Emulate terminal in output console

enter image description here

Voilà

enter image description here

0
source

The only way I managed to get progress bars (I use tqdm 4.19.5 for the progress bar, PyCharm Community 2017.3.2 and Anaconda / Python 3.6.3) to work correctly was to uncheck the "Show command line next" checkbox:

enter image description here

enter image description here

enter image description here

The solution sent by Tay2510 (checking the "Emulate terminal in output console" option) did not help me.

The only drawback of my solution is that you lose console access after the script completes.

0
source

Source: https://habr.com/ru/post/1269669/


All Articles