question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tqdm doesn't work on google colab

See original GitHub issue

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:

  • Step 1: pip3 install autokeras on google colab
  • Step 2: run example/mnist.py by coping and pasting the code in Google Colab.

Expected Behavior

Should be working without error

Setup Details

Include the details about the versions of:

  • OS type and version: Google Colab
  • Python: 3.6
  • autokeras: 0.2.18
  • scikit-learn: 0.19.1
  • numpy: 1.14.5
  • keras: 2.2.2
  • scipy:
  • tensorflow: 1.10.0
  • pytorch: 0.4.1
  • tqdm: 4.25.0

Additional context

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

13reactions
nyck33commented, Nov 4, 2019

Is it usable on Colab now? It seems to mess with it still.

4reactions
chengscommented, Nov 21, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Why is tqdm printing to a newline instead of updating ...
Try with position=0 and leave=True. (Solution working in Google Colab to avoid printing to a newline) from tqdm import tqdm import time def ......
Read more >
TensorFlow Addons Callbacks: TQDM Progress Bar
View on TensorFlow.org · Run in Google Colab · View source on GitHub ... Below is the expected output when you run the...
Read more >
OpenAI's Jukebox No Longer Working in Google Colab. panel ...
1 requires tqdm>=4.48.0, but Jukebox git requirements reference tqdm 4.45.0 which is now considered incompatible. I tried forking and updating ...
Read more >
Python | How to make a terminal progress bar using tqdm
Using tqdm is very simple, you just need to add your code between tqdm() after importing the library in your code. You need...
Read more >
tqdm in colab - Code Examples & Solutions For This Technical ...
from tqdm.notebook import tqdm for i in tqdm(...): ... Technical Problem Cluster First Answered On February 10, 2021 Popularity 5/10 ... colab tqdm...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found