progress_bar not displayed
ElisonSherton opened this issue · comments
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.
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.
put a sleep(0.1) inside probably this is instant.
I'm having a similar problem using Pycharm. I've posted here https://discourse.pymc.io/t/pycharm-cannot-show-progress-bar-while-jupyter-notebook-shows-well-after-upgrade-the-pymc3-to-3-9-3/6090
Any resolution to this? I'm having the same issue in jupyter notebook
I see the same behaviour in Atom with Hydrogen plugin, but solution in #61 worked for the simple example given by @ElisonSherton above.
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.
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.
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