Error creating widget: could not find model


#1

Hi,

I’m trying to use the new plotly.py 3.0 functionality. I followed the guide here: https://github.com/plotly/plotly.py/pull/942 but I still get an error in jupyterlab:

import plotly
import plotly.graph_objs as go

f = go.FigureWidget()
f  # printing the widget will display it

gives

Error creating widget: could not find model

I’m on Window, with anaconda (and plotly 3.0.0@rc11 installed from pip).

notebook=5.5.0
ipywidgets=7.2.1
jupyterlab=0.32.1

Any suggestions for something I may have missed? I installed and enabled the widgets as described in the PR.


#2

This the javascript error I get:

Uncaught (in promise) Error: Object ‘jupyter.widget’ not found in registry
at default.js:1432
at new Promise ()
at Object.C [as loadObject] (default.js:1411)
at e._handleCommOpen (default.js:920)
at WebSocket._onWSMessage (default.js:136)
(anonymous) @ default.js:1432
C @ default.js:1411
e._handleCommOpen @ default.js:920
_onWSMessage @ default.js:136
Promise.then (async)
e._handleCommMsg @ default.js:978
_onWSMessage @ default.js:139

jupyter nbextension list gives

Known nbextensions:
config dir: C:\Users\victor.chubukov\AppData\Local\Continuum\anaconda3\etc\jupyter\nbconfig
notebook section
plotlywidget/extension enabled
- Validating: ok
jupyter-js-widgets/extension enabled
- Validating: ok
nb_conda/main enabled
- Validating: ok
tree section
nb_conda/tree enabled
- Validating: ok


#3

Hi @chubukov

Perhaps this thread will be helpful Plotly 3.0.0 FiguerWidget not working