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

Jupyter Lab - javascript error on ProfileReport visualization and matplotlibs 3D plots. #7407

Closed
Gabriel-R-A opened this issue Jun 24, 2024 · 8 comments
Labels
bug status:Needs Info status:Needs Triage Applied to issues that need triage

Comments

@Gabriel-R-A
Copy link

Description

I'm having problems with Jupyter Lab to visualize some plots, such as 3D graphs and Profile Reports, normally functions that end up using javascript are buggy.
I've already reinstalled dependencies and widgets, updated everything, and it still shows an error.

image

When I click on the box this is the error that is reported:

[Open Browser Console for more detailed log - Double click to close this message]
Failed to load view class 'ErrorWidgetView' from module '@jupyter-widgets/base'
Error: No version of module @jupyter-widgets/base is registered
    at m.loadClass (http://localhost:8888/static/lab/6187.44803385627ac91ed1c4.js?v=44803385627ac91ed1c4:1:4010)
    at m.loadViewClass (http://localhost:8888/static/lab/4416.74698273b3de2ad84746.js?v=74698273b3de2ad84746:1:11554)
    at http://localhost:8888/static/lab/4416.74698273b3de2ad84746.js?v=74698273b3de2ad84746:1:4288
    at async C.renderModel (http://localhost:8888/static/lab/6187.44803385627ac91ed1c4.js?v=44803385627ac91ed1c4:1:1297)

Even reinstalling all extensions and widgets, and updating everything, I still get this error.

I have exactly the same error plotting 3d graphs with matplotlib

These are the versions of the tools I'm using:

Jupyter - Lab: 4.0.11
Matplotlib version: 3.8.2
ydata_profiling version: 4.8.3

@Gabriel-R-A Gabriel-R-A added bug status:Needs Triage Applied to issues that need triage labels Jun 24, 2024
@RRosio
Copy link
Collaborator

RRosio commented Jun 25, 2024

Thank you for opening this issue @Gabriel-R-A! This is the repository for Jupyter Notebook, I see you are using JupyterLab, so you may want to open this issue in that repository.

The error suggests that you may be missing IPywidgets. Could you share the version of IPywidgets that you have installed?

@RRosio
Copy link
Collaborator

RRosio commented Jul 2, 2024

Hi @Gabriel-R-A just wanted to follow up with you, could you provide the information requested above?

@Gabriel-R-A
Copy link
Author

Thank you for opening this issue @Gabriel-R-A! This is the repository for Jupyter Notebook, I see you are using JupyterLab, so you may want to open this issue in that repository.

The error suggests that you may be missing IPywidgets. Could you share the version of IPywidgets that you have installed?

Sorry for the delay, I hadn't received notification of the first response via email.
The version I'm using is this:

Name: ipywidgets
Version: 8.1.3

@RRosio
Copy link
Collaborator

RRosio commented Jul 9, 2024

Thank you for your reply @Gabriel-R-A ! If you try to %pip install ipywidgets and restart the kernel once that has succeeded, do you still see this issue?

@RRosio
Copy link
Collaborator

RRosio commented Jul 16, 2024

Hi @Gabriel-R-A, another ping here to follow up and see if you were able to try the suggestion above?

@Gabriel-R-A
Copy link
Author

Hi @Gabriel-R-A, another ping here to follow up and see if you were able to try the suggestion above?

Hey @RRosio I can only resolve it after reinstalling jupyter lab through the console and redoing all the necessary updates and then redoing the build.

After that everything was functional, everything with these versions:

ipywidgets version: 8.1.3

Jupyter lab version: 4.2.2

@RRosio
Copy link
Collaborator

RRosio commented Jul 23, 2024

Thank you for the update @Gabriel-R-A!
Since reinstalling has given you a working set up, I will go ahead and close this issue! If you continue to run into it or have more details to provide please feel free to reopen this issue!

@RRosio RRosio closed this as completed Jul 23, 2024
@josesan77
Copy link

josesan77 commented Sep 9, 2024

pip install -U ipywidgets
If version is earlier than 8.x then run in prompt window the command above. It removes installed instance of ipywidgets and upgrades it to the latest version. See more here:
https://stackoverflow.com/questions/73715821/jupyter-lab-issue-displaying-widgets-javascript-error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug status:Needs Info status:Needs Triage Applied to issues that need triage
Projects
None yet
Development

No branches or pull requests

3 participants