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

TextTagger - Javascript Error #33

Open
PawaritL opened this issue Oct 17, 2022 · 6 comments
Open

TextTagger - Javascript Error #33

PawaritL opened this issue Oct 17, 2022 · 6 comments

Comments

@PawaritL
Copy link

PawaritL commented Oct 17, 2022

the TextTagger object seems to constantly generate a Javascript error in JupyterLab (I'm using 3.4.8) with the latest versions of ipywidgets (8.0.2) installed. I keep getting "Class null not found in module @jupyter-widgets/controls" (see second screenshot of Chrome developer console).
Any ideas on what might be causing this?
Normal text classification works fine. Many thanks!

image

image

@janfreyberg
Copy link
Owner

Hi there, is this with the latest version of ipyannotations?

I haven't seen this before but the developer console output looks like there is a conflict between different dependencies. I'll take a look. Does the widget still work?

@PawaritL
Copy link
Author

PawaritL commented Oct 18, 2022

Many thanks for creating this amazing library btw!

This is with:
ipyannotations==0.5.1
ipywidgets==8.0.2
jupyterlab==3.4.8
jupyterlab-widgets==3.0.3

The widget works for JupyterLab - tested with superintendent just now (see screenshot attached). It's just that this big javascript error block keeps popping up with every cell.

Screenshot 2022-10-18 at 10 43 08

Thanks so much for your help!

@PawaritL
Copy link
Author

PawaritL commented Oct 18, 2022

FYI - for classic Jupyter notebook (not Jupyter Lab) the widget doesn't work at all, this is what happens:

image

image

@jasongrout-db
Copy link

I see you are using ipywidgets 8. Does it work with ipywidgets 7?

@PawaritL
Copy link
Author

I see you are using ipywidgets 8. Does it work with ipywidgets 7?

I tried just now with ipywidgets 7.6 and 7.7:

  • for JupyterLab, we see a new Javascript error about Failed to load model class 'VBoxModel' from module '@jupyter-widgets/controls':

image

  • for classic Jupyter notebooks, there's no clear error but the widget doesn't show:

image

@janfreyberg
Copy link
Owner

Hi, and apologies for not getting back on this - I was on holiday.

I can reproduce your error in JupyterLab - I see the same large box with javascript errors. However, it does resolve for me when using ipywidgets 7.7.2 - jupyterlab no longer displays the error.

I can also reproduce the error in Jupyter Notebook - I find it a bit hard to understand the issue as the error refers to mime-type mismatches referring to base jupyter widgets, but when loading ipywidgets by itself it works and there is no error. I think this may be something to raise with the core jupyter widget devs. @jasongrout-db - do you have a suggestion for how to fix this or where to raise an issue?

For @PawaritL - if you install ipywidgets 7.7.2 does this also solve the issue for you? If so I may release a new version with the ipywidget version pinned.

Thanks again for raising this!

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
@janfreyberg @PawaritL @jasongrout-db and others