Print text under tqdm progress bar

I would like to display the text in a circular buffer below the tqdm execution line. This text does not have to be updated every time the panel is refreshed. When using the twdm.write () function, text is only printed to the right of the panel, which is not desirable. I'm not sure if this is possible with tqdm or not.

I would like it to look like this:

70%|███████   | 7/10 [00:00<00:00,  9.65it/s]
Message 2 ....
Message 3 ....
Message 4 ....
Message 5 ....

      

When a new message is printed, message 2 is cleared and the messages are moved up the stack. I am not tied to tqdm, but I used it like this ar.

+3


source to share





All Articles