As mentioned by @shyamalschandra.
According to tqdm issue#558
tqdm.notebook can't work on Google Colab due to the lack of ipywidgets
Steps to reproduce the behavior:
Should be working without error
Include the details about the versions of:
Could be solved by replacing
from tqdm.autonotebook import tqdm
to
from tqdm import tqdm
However, the final progress bar will remain on the terminal
Hi, I am a tqdm developer and am trying to address this problem.
I have a PR which has minimal function https://github.com/tqdm/tqdm/pull/640
Could you please try it and give me some feedbacks? (eg. If it is enough for you).
Hi @chengs, thanks for the great work. With the patch, tqdm should be able to support tqdm.notebook on Google Colab, Is my understanding correct?
I've tried our original usage of tqdm:
from tqdm.autonotebook import tqdm
progress_bar = tqdm(total=len(
desc='Epoch-'
+ str(self.current_epoch)
+ ', Current Metric - '
+ str(self.current_metric_value),
file=sys.stdout,
leave=False,
ncols=100,
position=0,
unit=' batch')
Still I got the same error code.
@tl-yang Yes, although it is hard to implement ALL the tqdm features since there is no ipywidgets support, my plan is to implement a ugly but workable progressbar without the support of ipywidgets.
I will check your case and try to make it work.
@chengs Do you have any update on this?
I implement the basic function. Please see the demo here. https://colab.research.google.com/drive/12QXaI5ZAiQJfK-19HVl8fyjyh79B-TMf
The PR is waiting for review yet, so I think it may take weeks until my PR is merged into master.
Is it usable on Colab now? It seems to mess with it still.
Most helpful comment
Is it usable on Colab now? It seems to mess with it still.