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

JN 7 → tqdm_notebook(leave=False) → Error displaying widget: model not found #3821

Open
MichalRIcar opened this issue Aug 3, 2023 · 2 comments

Comments

@MichalRIcar
Copy link

MichalRIcar commented Aug 3, 2023

Hi,

the issue was wrongly closed, thus reopening.

Using tqdm 4.65.0 and message " Error displaying widget: model not found" appears in Jupyter Notebook 7 (not in JN<7) and JupterLab 4.03 when tqdm is inside another widget. Obviously, it comes from the fact that tqdm widget is discarded by param "leave=False".

The bug: tqdm_notebook(leave=False) inside another widget → JN 7 / JL 4 reports "Error displaying widget: model not found".

Reproduction of the bug:

from   ipywidgets         import interactive
from   tqdm.notebook      import tqdm_notebook

def x():
    for i in tqdm_notebook(['a'], leave=False):
        1

interactive(x)

image

I have reported the issue to tqdm and JN teams too.

image

Best,
Michal

@MichalRIcar
Copy link
Author

MichalRIcar commented Aug 3, 2023

Connected with the open issue jupyter/notebook#6989 and tqdm/tqdm#1487
And wrongly closed one #3812

@ClaudiaSchulz
Copy link

I'm running into the same problem even just running something easy like

from tqdm.notebook import tqdm

for i in tqdm(range(100)):
    pass

using JupyterLab with

notebook                     7.0.4
jupyterlab                   4.0.6 
tqdm                         4.66.1

and I have @jupyter-notebook/lab-extension v7.0.4 and @jupyter-widgets/jupyterlab-manager v5.0.9

Any updates on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants