[issue37762] IDLE very slow due a super long line output in chunks

2019-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Python374-4.png shows that Tensorflow prints proper lines, ending with newline, when printing to the Windows console. The 30 character progress bar is repeated on each new line. It does not appear to be using either \r or \b. I consider it a bug in tensor

[issue37762] IDLE very slow due a super long line output in chunks

2019-08-12 Thread Tal Einat
Tal Einat added the comment: With PR GH-15211 (for issue #37827), which implements terminal-like handling of the \r and \b control characters, the TensorFlow tutorial almost works as intended in the IDLE shell; a minor change to Tensorflow is needed to make it work as intended. Tensorflow i

[issue37762] IDLE very slow due a super long line output in chunks

2019-08-09 Thread Bernhard Hiller
Bernhard Hiller added the comment: Please find enclosed a screen shot of the command line, when the same script is run there. If you want to perform the tests yourself in order to get more information about the type of those characters, you may simply run the script mentioned in my first pos

[issue37762] IDLE very slow due a super long line output in chunks

2019-08-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: For the general issue of interpreting control chars, see #23220 (and duplicate #24572). IDLE is a development environment, not a production environment. If Tal's hypothesis is correct, a solution for Bernard would be a new addition I want for Run Customized:

[issue37762] IDLE very slow due a super long line output in chunks

2019-08-06 Thread Tal Einat
Tal Einat added the comment: So, Jupyter notebook has special support for carriage-return ('\r') and backspace ('\b') characters[1]. Do we want to consider adding similar support in IDLE? [1] https://github.com/jupyter/notebook/blob/e498de6775b3de57f5ff827e562c179b17893064/notebook/static/b

[issue37762] IDLE very slow due a super long line output in chunks

2019-08-06 Thread Tal Einat
Tal Einat added the comment: IDLE in general doesn't recognize and support control characters commonly used in terminals. This is often a problem with running things that show a progress bars, which usually print "\r" to return the cursor to the beginning of the line and then overwrite the

[issue37762] IDLE very slow due a super long line output in chunks

2019-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: One may copy and paste small chunks of code and output into a message. By 'demo script', I presume you mean the following. import tensorflow as tf mnist = tf.keras.datasets.mnist (x_train, y_train),(x_test, y_test) = mnist.load_data() x_train, x_test = x_tra