-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
tqdm doesn't work on google colab #307
Comments
Hi, I am a tqdm developer and am trying to address this problem. |
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? 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. |
@nyck33 For me it is still a mess |
Bug Description
As mentioned by @shyamalschandra.
According to tqdm issue#558
tqdm.notebook can't work on Google Colab due to the lack of ipywidgets
Reproducing Steps
Steps to reproduce the behavior:
Expected Behavior
Should be working without error
Setup Details
Include the details about the versions of:
Additional context
Could be solved by replacing
to
However, the final progress bar will remain on the terminal
The text was updated successfully, but these errors were encountered: