Closed Miladiouss closed 2 years ago
Well, if there was that output, it seems to be working to me. What did happen?
There is no progress bar. After the cell is finished, the output above is printed, with that warning sign emoji (⚠︎). I updated my previous post.
You need to show your code. Generally when there's the warning sign and 0%, it's because you forgot to increment the bar.
Exactly what @TheTechRobo said, thanks.
And, if it appears only after ending, this is intended behavior, since the jupyter does not report itself as interactive. You have to use force_tty=True
.
Please show your code, then we would not have to be figuring things out by ourselves.
Thank you @TheTechRobo. As your suggestion, providing the force_tty=True
corrects the behavior :+1:
from alive_progress import alive_bar
from time import sleep
x = list(range(50))
with alive_bar(len(x), title='Jupyter Alive Progress Bar:', force_tty=True) as bar:
for i in x:
sleep(.1)
bar()
You're welcome!
The alive bar does not show during Jupyter cell process and only outputs the final frame:
Things work properly in my terminal.
Here is my system configuration if needed:
Ubuntu 22.04
Alive Progress:
Jupyter with Anaconda: