-
-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alive_bar not working properly on PyCharm's "Run" menu option #45
Comments
According to this there could be a If there would be a manual way to change the line ending for the |
Hello @diogomreiras, I can't reproduce your problem, it does work properly on Pycharm: I didn't do anything more than configuring a Python Interpreter with The only difference seems to be Python version, which I've used 3.7.6, but this would not make that difference. Regarding the end_line, that is an implementation detail, necessary to create animations, Anyway, keep me posted, let's try to figure this out. |
Oh, regarding the terminal, in there it should work! Anyway, the bar only soft wraps if there's no space for a full line, the terminal wraps automatically. Try to increase the Terminal a little. Regarding the animated gifs, yeah, pypi doesn't fit them. Please always use the main page in: https://github.com/rsalmei/alive-progress |
@rsalmei However, running the file through the PyCharm option "Run 'main'" (right clicking on the file inside PyCharm) (I don't know how to describe it better!), where |
Hey, you can configure globally for the from alive_progress import config_handler
config_handler.set_global(length=20) What does that Pycharm's "Run 'main'" function do differently? Why wouldn't it work in there? |
@rsalmei :
I am no PyCharm expert. I have no idea... |
So it does work in both pycharm and terminal, great. |
Well, I know the pycharm's terminal is heavily instrumented, so maybe it is a bug in there. Regarding the size that soft wraps, please include a |
I just came across your tool and was also having issues running in PyCharm's "Run Console". I was able to get it to work using the answer here: https://stackoverflow.com/a/48002833/7658632
I hope this helps! |
Yes, thanks @darkhark |
Indeed @darkhark , |
Tried 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.
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 ; )
The text was updated successfully, but these errors were encountered: