rsalmei/alive-progress

How to disable show when print

chasingboy opened this issue · 3 comments

Hello,this is my code and running result. How can I do not display content like on 1, on 2,... in front of every line.

>>> from alive_progress import alive_bar
>>> with alive_bar(100) as bar:
...     for line in range(0,100):
...         print(line)
...         bar()
... 
on 0: 0
on 1: 1
on 2: 2
on 3: 3
on 4: 4
... ...
on 97: 97
on 98: 98
on 99: 99
|████████████████████████████████████████| 100/100 [100%] in 0.0s (12755.15/s) 

I want to display it like that.

>>> from alive_progress import alive_bar
>>> with alive_bar(100) as bar:
...     for line in range(0,100):
...         print(line)
...         bar()
... 
 0
 1
2
3
4
...
98
99
|████████████████████████████████████████| 100/100 [100%] in 0.0s (12755.15/s) 
``
Thanks!!!

Try using alive_bar(100, enrich_print=False)?

Hello,
Exactly as @TheTechRobo has said.
Please read the config docs, this one and several others are explained there.
Sure thing 👍

@TheTechRobo @rsalmei Thanks! alive_bar(100, enrich_print=False) is useful.