Tal Einat <talei...@gmail.com> 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 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/generic_utils.py 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.) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37762> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com