Author taleinat
Recipients Bernie, taleinat, terry.reedy
Date 2019-08-12.12:53:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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 inspect sys.stdout to decide whether to use \r and \b control characters is its progress output. Since it recognizes that IDLE's sys.stdout replacement isn't a terminal, it decides not to. Overriding the _dynamic_display attribute of the Progbar class in tensorflow/python/keras/utils/ makes it work very nicely with the above mentioned PR.

(I checked this on Windows; it is possible that it will "just work" on other OSs.)
Date User Action Args
2019-08-12 12:53:59taleinatsetrecipients: + taleinat, terry.reedy, Bernie
2019-08-12 12:53:59taleinatsetmessageid: <>
2019-08-12 12:53:59taleinatlinkissue37762 messages
2019-08-12 12:53:59taleinatcreate