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 #3812

Closed
MichalRIcar opened this issue Jul 28, 2023 · 6 comments

Comments

@MichalRIcar
Copy link

Hi,

This message appears only in Jupyter Notebook 7 (not in JN<7) and obviously comes from the fact that tqdm widget is discarded by param "leave=False".

The Jupyter Notebook 7 together with the very last versions of packages (all installed on 27.7.2023) and so far everything works smoothly, however, a minor bug is when using tqdm_notebook(leave=False) inside another widget then in JN is reported "Error displaying widget: model not found".

The code logic is as follows:

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.

Best,
Michal

@mwcraig
Copy link
Contributor

mwcraig commented Aug 1, 2023

@MichalRIcar -- thanks for opening the issue! It looks like this may have been addressed in tqdm v4.64.1: tqdm/tqdm#1364.

We'd recommend upgrading and/or checking the version of tqdm; for now we are closing this issue.

@mwcraig mwcraig closed this as completed Aug 1, 2023
@MichalRIcar
Copy link
Author

@mwcraig, thank you, my version of tqdm is 4.65.0, yet the issue is there..

@MichalRIcar
Copy link
Author

the issue persists on Jupyter Notebook 7 and JupyterLab 4.0.3, thus, very last versions
image

@MichalRIcar
Copy link
Author

As can be seen by just run code

image

@RKwork85
Copy link

+1 The problem needs to be solved

@balopat
Copy link

balopat commented Sep 5, 2024

+1 this is still an 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

4 participants