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 / trange prints nothing in Google Colab local runtime #687

Closed
3 tasks done
rnett opened this issue Mar 2, 2019 · 5 comments
Closed
3 tasks done

Tqdm notebook / trange prints nothing in Google Colab local runtime #687

rnett opened this issue Mar 2, 2019 · 5 comments
Assignees
Labels
p2-bug-warning ⚠ Visual output bad p5-wont-fix ☮ Sorry question/docs ‽ Documentation clarification candidate submodule-notebook 📓 Much web such IDE

Comments

@rnett
Copy link

rnett commented Mar 2, 2019

  • I have visited the [source website], and in particular
    read the [known issues]
  • I have searched through the [issue tracker] for duplicates
  • I have mentioned version numbers, operating system and
    environment, where applicable:

This is using the jupyter notebook support.

I have been trying to use the progress bar in Google Colab. It works fine when using the hosted runtime.

However, when I use a local time, nothing is shown at all.

To make things even weirder, it works just fine in jupyterlab on the local runtime, just not in Colab when using the local runtime.

For the hosted runtime:
Tqdm: 4.28.1
Python: 3.6.7
OS: [GCC 8.2.0] linux

For the local runtime:
Tqdm: 4.31.1
Python: 3.5.3
OS: [GCC 6.3.0 20170516] linux

Example:

from tqdm import tnrange as trange
from time import sleep

for i in trange(10):
  sleep(1)

Google Colab, Hosted Runtime: works
Google Colab, Local Runtime: fails, shows nothing
Jupyter Lab, Local Runtime: works

@casperdcl
Copy link
Sponsor Member

casperdcl commented Mar 4, 2019

duplicate of #558? Does #640 help?

@casperdcl casperdcl added p2-bug-warning ⚠ Visual output bad question/docs ‽ Documentation clarification candidate submodule-notebook 📓 Much web such IDE labels Mar 4, 2019
@rnett
Copy link
Author

rnett commented Mar 4, 2019

#640 does not help. I suspect its a separate issue or a versioning issue as it runs fine in hosted colab and local jupyterlab, just not local colab.

@chengs
Copy link
Contributor

chengs commented Mar 29, 2019

#640 is not designed for this issue.

@rnett You seems to use local jupyter as a backend of Colab. I understand this but don't see the reason: can't you just use jupyter-labl locally?

This issue is hard to fix. Ipython budgets will register a JavaScript script in the Jupyter to show all the progress bar. Apparently, the JavaScript script cannot be registered into Colab frontend. And tqdm has nothing to do for this issue. Fixing it requires Ipywidgets or Colab change their implementations, not us.

@chengs chengs added the p5-wont-fix ☮ Sorry label Mar 29, 2019
@chengs
Copy link
Contributor

chengs commented Apr 10, 2019

@casperdcl I close this due to my investigation above.

@chengs chengs closed this as completed Apr 10, 2019
@pharringtonp19
Copy link

Any updates on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2-bug-warning ⚠ Visual output bad p5-wont-fix ☮ Sorry question/docs ‽ Documentation clarification candidate submodule-notebook 📓 Much web such IDE
Projects
None yet
Development

No branches or pull requests

4 participants