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

Open
MichalRIcar opened this issue Jul 28, 2023 · 3 comments

Comments

@MichalRIcar
Copy link

MichalRIcar commented Jul 28, 2023

Hi,

This message appears only in JN 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 team too.

Best,
Michal

@MichalRIcar MichalRIcar added bug status:Needs Triage Applied to issues that need triage labels Jul 28, 2023
@jtpio
Copy link
Member

jtpio commented Jul 28, 2023

Thanks @MichalRIcar for reporting 👍

There seems to be the same issue in JupyterLab too:

image

I have reported the issue to tqdm team too.

Thanks!

@jasongrout
Copy link
Member

Looks like this is probably an ipywidgets issue. Can you open this in https://github.com/jupyter-widgets/ipywidgets?

@RRosio
Copy link
Collaborator

RRosio commented Aug 1, 2023

@MichalRIcar it looks like you opened an issue, jupyter-widgets/ipywidgets#3812, in the ipywidgets repository. I see it was closed but as there are recent followup comments, I've linked it here to better track the outcome of that issue.

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

No branches or pull requests

4 participants