Error creating widget: could not find model



I’m trying to use the new 3.0 functionality. I followed the guide here: 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


Error creating widget: could not find model

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


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


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


Hi @chubukov

Perhaps this thread will be helpful Plotly 3.0.0 FiguerWidget not working