Skip to content

Jupyter Lab extensions 1.5.2 fails to display widgets #2229

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

Closed
andrei91ro opened this issue Feb 25, 2020 · 1 comment
Closed

Jupyter Lab extensions 1.5.2 fails to display widgets #2229

andrei91ro opened this issue Feb 25, 2020 · 1 comment

Comments

@andrei91ro
Copy link

After having build issues with version 1.5.1 of the jupyter lab extension (discussed and solved in #2223 ) I am now faced with runtime problems: the widget does not start and the plot is not shown.

I am seeing only a blank container where the plot should be. If I use a widget, I only see a loading widget ... message that never changes.

I installed the exact versions (for python and JS versions of plotly) as stated in the update README.
The only difference is that I am using Jupyter lab 1.2.6 vs 1.2.0 from the Readme.

Can this be the cause of my problem?

The browser console contains the following output:

Could not instantiate widget manager-base.js:273:32
    _make_model manager-base.js:273
    l manager-base.js:44
    s manager-base.js:25
    s manager-base.js:17
Error: "Could not create a model."
    n utils.js:119
utils.js:119:20
    n utils.js:119
Exception opening new comm default.js:992:24
    _handleCommOpen default.js:992
Error: Module plotlywidget, semver range 1.5.2 is not registered as a widget module manager.js:305:18
Error: "Module plotlywidget, semver range 1.5.2 is not registered as a widget module"
    loadClass manager.js:305
    _make_model manager-base.js:263
    l manager-base.js:44
    s manager-base.js:25
    L manager-base.js:19
    L manager-base.js:15
    _make_model manager-base.js:257
    new_model manager-base.js:246
    l manager-base.js:44
    s manager-base.js:25
    L manager-base.js:19
    L manager-base.js:15
    new_model manager-base.js:232
    handle_comm_open manager-base.js:144
    _handleCommOpen manager.js:62
    _handleCommOpen default.js:990
default.js:111:74
    _msgChain default.js:111
Error: Module plotlywidget, semver range 1.5.2 is not registered as a widget module manager.js:305:18

Thank you for your kind help and congrats for Plotly!

@andrei91ro
Copy link
Author

andrei91ro commented Mar 28, 2020

It seems that now, after a clean reinstall of update versions of plotly-jupyterlab (see config below), everything works fine out-of-the-box.
So, I'm closing this issue and I thank the developers!

 > jupyter-labextension list

JupyterLab v2.0.1
Known labextensions:
   app dir: /home/andrei/.local/share/jupyter/lab
        @jupyterlab/toc v3.0.0  enabled  OK
        jupyterlab-plotly v1.5.4  enabled  OK
        plotlywidget v1.5.4  enabled  OK

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

1 participant