You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you launch a plain jupyter/base-notebook:lab-3.4.2 without ipywidgets, tqdm prompts you to install ipywidgets but at least a progress bar displays. Then, once you install ipywidgets, there is no more warning and a progress bar displays.
If ipywidgets is installed in the Docker build (e.g. with RUN pip install ipywidgets) then tqdm progress bar does not appear, only Loading widget...
Anything else?
I can get a progress bar to appear if I use from tqdm import tqdm instead of from tqdm.auto import tqdm but that isn't an option because I originally came down this rabbit hole because huggingface_hub uses from tqdm.auto import tqdm in their code (https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/file_download.py#L18). So when the progress bar doesn't show, I can't track how a multi-gigabyte file download is going...
The text was updated successfully, but these errors were encountered:
I have no idea though why they work when !pip install from the console itself.
As there is no support from the upstream, I think the best way for you is to switch to running your code in notebook, not in console.
Oh, I see — sorry, then I didn't come across this issue. I'll close this one...
I've checked and it works fine in notebooks.
Yep, same
I have no idea though why they work when !pip install from the console itself.
As there is no support from the upstream, I think the best way for you is to switch to running your code in notebook, not in console.
Fair point. Indeed this makes jupyter lab far less appealing (as someone else has also noted...)
+1 for issue above. I generally think of JupyterLab as "all the things jupyter notebook does and more" but this issue rains on the jlab parade in a significant way.
What docker image(s) are you using?
base-notebook
OS system and architecture running docker image
macOS/aarch64 (Mac Mini) + BinderHub
What Docker command are you running?
docker build . -t jupyter/base-notebook:lab-3.4.2_ipywidgets
and thendocker run --rm -p 8888:8888 jupyter/base-notebook:lab-3.4.2_ipywidgets
Dockerfiles:
I have tried both:
and, trying to solve it the same way as #1434,
How to Reproduce the problem?
Build Docker file, open a new Python 3 Console in JupyterLab then run:
Or use Binder: https://mybinder.org/v2/gh/parledoct/tutorials/binderhub?urlpath=lab, built from https://github.com/parledoct/tutorials/blob/binderhub/Dockerfile
Command output
No response
Expected behavior
If you launch a plain
jupyter/base-notebook:lab-3.4.2
without ipywidgets, tqdm prompts you to installipywidgets
but at least a progress bar displays. Then, once you installipywidgets
, there is no more warning and a progress bar displays.Or see Binder: https://mybinder.org/v2/gh/fauxneticien/tqdm-jupyterlab/main?urlpath=lab, built from https://github.com/fauxneticien/tqdm-jupyterlab/blob/main/Dockerfile
Actual behavior
If
ipywidgets
is installed in the Docker build (e.g. withRUN pip install ipywidgets
) then tqdm progress bar does not appear, onlyLoading widget...
Anything else?
I can get a progress bar to appear if I use
from tqdm import tqdm
instead offrom tqdm.auto import tqdm
but that isn't an option because I originally came down this rabbit hole becausehuggingface_hub
usesfrom tqdm.auto import tqdm
in their code (https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/file_download.py#L18). So when the progress bar doesn't show, I can't track how a multi-gigabyte file download is going...The text was updated successfully, but these errors were encountered: