alive_bar not working properly on PyCharm's "Run" menu option
See original GitHub issueTried to run your simplified example (below) and the bar does now work properly. Working with PyCharm2020.1.2 on a macOS 10.15.5 with Python3.7.3 using an new empty project and installing alive-progress as suggested on PyPi The bar only shows itself already completed after the 10s, so no progress is shown.
import time
from alive_progress import alive_bar
def main():
with alive_bar(10, force_tty=True) as bar:
for i in range(10):
time.sleep(1)
bar()
print("done")
if __name__ == "__main__":
main()
I also tried running this code from Terminal. The result is that it shows and updates the bar apparently correctly a few times (3 bars going up and down work fine during the 0/10 progress) but as soon as 1/10 progress is reached by the output of the bar, it prints a bar in a new line for every update…
Am I doing something wrong? 😇 Let me know if you need more info. Hopefully we can get this beautiful took working for me 2 💪
PS: the gifs on PyPi for the Styles section are not being shown, with a message of size being too big ; )
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (6 by maintainers)
Top GitHub Comments
Yes, thanks @darkhark I wasn’t aware of that “Emulate terminal…” option! 👍
Indeed @darkhark ,
force_tty=True
was the magic sauce for PyCharm (2021.1) - cheers!