top | item 28851696

(no title)

fladd | 4 years ago

Nice. I also looked into this a while ago and came up with a very simplistic (few lines) Python implementation that does this and even allows for some customization: https://gist.github.com/fladd/36c422f1c0e9bf02f41f9fad19609d...

discuss

order

julienpalard|4 years ago

There's https://tqdm.github.io/ to do nice progress bars in Python.

But my goal was not really the progress bars, but the placing of it below the logs.

stavros|4 years ago

Yeah, when I was reading the article I started out thinking "What? It's just simply rewinding the line", and then you mentioned that it's always at the bottom of the window, and I thought "Now that is a good trick, I wonder how it's done".

And then I didn't wonder. Good work.