To implement a status bar like below:
[========== ] 45% [================ ] 60% [==========================] 100%
For Python 3.6 the following works for me to update the output inline:
for current_epoch in range(10): for current_step) in range(100): print("Train epoch %s: Step %s" % (current_epoch, current_step), end="\r") print()