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

tqdm_notebook doesn't work on Google Colab platform. #558

Closed
IAmSuyogJadhav opened this issue May 21, 2018 · 10 comments
Closed

tqdm_notebook doesn't work on Google Colab platform. #558

IAmSuyogJadhav opened this issue May 21, 2018 · 10 comments
Assignees
Labels
p3-enhancement 🔥 Much new such feature submodule-notebook 📓 Much web such IDE

Comments

@IAmSuyogJadhav
Copy link

While working on notebooks in the Google's cloud computing environment (Google Collaboratory), the tqdm.tqdm_notebook seems to be not working.

It raises error saying "NameError: name "IntProgress" is not defined"

How to reproduce:

  1. Create a new notebook on colab.research.google.com (given you have a google account. The platform is free, however)
  2. Try to use tqdm_notebook.
@chengs
Copy link
Contributor

chengs commented May 22, 2018

@IAmSuyogJadhav tqdm_notebook requires the installation and compatibility of ipywidgets (https://github.com/jupyter-widgets/ipywidgets), which Google Collaboratory does not have (googlecolab/colabtools#60).

Since this is an upstream problem, there is nothing to do on tqdm. You may wait some days, perhaps Google will fix the compatibility of ipywidgets.

An alternative way is to use tqdm instead of tqdm_notebook, like this:
screen shot 2018-05-22 at 2 35 48 pm
Although it is imperfect, it does work.

@casperdcl I suggest close this issue until the upstream compatibility problem is fixed.

@casperdcl casperdcl added the invalid ⛔ Not-an-issue or upstream (not-our-issue) label May 22, 2018
@casperdcl
Copy link
Sponsor Member

thanks @chengs @IAmSuyogJadhav

@IAmSuyogJadhav
Copy link
Author

Oh I see! Thanks for helping out ! @chengs

@chengs
Copy link
Contributor

chengs commented Nov 13, 2018

@IAmSuyogJadhav can you try this #640 and give me some feedback?

@chengs
Copy link
Contributor

chengs commented Nov 13, 2018

I reopen this because I am trying to solve it.
#640

@chengs chengs reopened this Nov 13, 2018
@IAmSuyogJadhav
Copy link
Author

Tried #640 on Google Colab.
Looks to be working fine. Only a minor compatibility issue I see here, though.
Scrrenshot

@chengs chengs added p3-enhancement 🔥 Much new such feature submodule-notebook 📓 Much web such IDE and removed invalid ⛔ Not-an-issue or upstream (not-our-issue) labels Nov 13, 2018
@CentralLT
Copy link

@chengs is this still an issue? maybe we can close this issue?

@IAmSuyogJadhav
Copy link
Author

IAmSuyogJadhav commented Aug 10, 2020

I have been using tqdm in jupyter notebooks without any trouble for quite a while now. I can confirm this is no longer an issue. This can be closed, from my side at least.

@OscarGarciaF
Copy link

I have ran into this problem recently and it uses a lot of ram. See this issue on colab github:
googlecolab/colabtools#1746 (comment)

@gokceneraslan
Copy link

image

here is how "from tqdm.auto import tqdm" looks like on google colab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p3-enhancement 🔥 Much new such feature submodule-notebook 📓 Much web such IDE
Projects
None yet
Development

No branches or pull requests

6 participants