Skip to content
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

progress_bar not displayed #62

Closed
ElisonSherton opened this issue May 4, 2020 · 9 comments
Closed

progress_bar not displayed #62

ElisonSherton opened this issue May 4, 2020 · 9 comments

Comments

@ElisonSherton
Copy link

ElisonSherton commented May 4, 2020

Hi there!

I installed fastprogress using pip. I am trying to use this in order to create a progressbar for the sake of measuring time required to parse all the documents using spacy.

The issue is that the progressbar is not being displayed. Can you please help me with the same? I have tried to create a toy example to demonstrate the same below.

image

As seen above, there's a small progressbar with no comment and it's static all the while.

Can you please help me with this?

With Regards,
Vinayak.

@tcapelle
Copy link

put a sleep(0.1) inside probably this is instant.

@import-antigravity
Copy link

I'm having a similar problem. Running some of the example code in an iPython shell in iTerm looks correct:
Screen Shot 2020-07-17 at 11 59 30 AM

But running it in pycharm (even in an iPython terminal) looks like OP's screenshot.

@yuanjinghui
Copy link

@ohmeow
Copy link

ohmeow commented Dec 12, 2020

Any resolution to this? I'm having the same issue in jupyter notebook

@fohria
Copy link

fohria commented Dec 17, 2020

I see the same behaviour in Atom with Hydrogen plugin, but solution in #61 worked for the simple example given by @ElisonSherton above.

@ohmeow
Copy link

ohmeow commented Dec 17, 2020 via email

@leiyu-thunder
Copy link

I have the same problem in jupyter notebook. I solved it by upgrade IPython package >= 6.0.0, which is required by fastprogress. Maybe you can try it.

@johan12345
Copy link

This still is an issue for me in PyCharm. A workaround seems to be to add the following:

from fastprogress import fastprogress
fastprogress.printing = lambda: True

I pushed a possible fix in PR #89.

@redreddragon
Copy link

I have resolved this problem in PyCharm for Windows.

from fastprogress.fastprogress import ConsoleProgressBar,ConsoleMasterBar

from time import sleep
mb = ConsoleMasterBar(range(10))
pb = ConsoleProgressBar(range(100), parent=mb)

#  pd.end is '\r' as default,  which can not be displayed in Windows
pb.end = '\r\n'

for i in mb:
    for j in pb:
        sleep(0.01)

More details here https://stackoverflow.com/questions/15433188/what-is-the-difference-between-r-n-r-and-n

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants