Jupyter environment
brunolnetto opened this issue · 3 comments
brunolnetto commented
How to make this great tool work on jupyter notebook cells?
rsalmei commented
It should work already. Is it not working for you?
brunolnetto commented
I tried to apply on a future.concurrent application without much of a success. Is the library suitable for such cases?
Take for instance the code below on jupyter notebook. It only displays the last bar frame.
from alive_progress import alive_bar
from time import sleep
n = 1000
with alive_bar() as bar:
for i in range(n):
bar()
sleep(0.01) # Pause for 0.1 seconds
TheTechRobo commented
Try adding force_tty=True
to the alive_bar()
function call: https://github.com/rsalmei/alive-progress?tab=readme-ov-file#forcing-animations-on-pycharm-jupyter-etc