# Error Displaying FigureWidget

**URL:** <https://community.plotly.com/t/error-displaying-figurewidget/11974>\
**Category:** 📊 Plotly Python\
**Created:** [July 21, 2018, 4:34am UTC](https://community.plotly.com/t/error-displaying-figurewidget/11974 "2018-07-21T04:34:51Z")\
**Posts on this page:** 11\
**Page:** 2

<div class="post-metadata">

**Author:** ![soha](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@soha](https://community.plotly.com/u/soha)\
**Post date:** [March 26, 2019, 5:17pm UTC](https://community.plotly.com/t/error-displaying-figurewidget/11974/21 "2019-03-26T17:17:28Z")

</div>

i found this somewhere else which is related to the error I get :

> <https://github.com/yarnpkg/yarn/issues/5540#issuecomment-374069461>

but not sure where should I place this changes for the .yarnrc! would you be able to help?

---

<div class="post-metadata">

**Author:** ![jmmease](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jmmease/32/3706_2.png) [@jmmease](https://community.plotly.com/u/jmmease)\
**Post date:** [March 27, 2019, 9:35am UTC](https://community.plotly.com/t/error-displaying-figurewidget/11974/22 "2019-03-27T09:35:32Z")

</div>

Hi @soha,

I think you’re probably on to something with the need to increase yarn’s timeout. I’m not sure offhand how to change this JupyterLab’s bundled version of yarn. But it looks like this open JupyterLab issue would be a good place to ask [https://github.com/jupyterlab/jupyterlab/issues/5943](https://github.com/jupyterlab/jupyterlab/issues/5943).

-Jon

---

<div class="post-metadata">

**Author:** ![mtkilic](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@mtkilic](https://community.plotly.com/u/mtkilic)\
**Post date:** [May 15, 2019, 4:02pm UTC](https://community.plotly.com/t/error-displaying-figurewidget/11974/23 "2019-05-15T16:02:58Z")

</div>

Hi @jmmease

I am getting following error on jupyterlab from f12  
`Error: Object 'jupyter.widget' not found in registry`

Result jupyter labextension list:

```
@jupyter-widgets/jupyterlab-manager v0.38.1 enabled ok
        @jupyterlab/plotly-extension v0.18.2 enabled ok
        bqplot v0.4.5 enabled ok
        jupyter-matplotlib v0.3.0 enabled ok
        jupyterlab-chart-editor v1.1.0 enabled ok
        plotlywidget v0.10.0 enabled ok

```

Result pip list:

```
ipykernel 5.1.0
ipython 7.5.0
ipython-genutils 0.2.0
ipywidgets 7.4.2
jupyter-client 5.2.4
jupyter-core 4.4.0
jupyterlab 0.35.4
jupyterlab-server 0.2.0
plotly 3.9.0
```

---

<div class="post-metadata">

**Author:** ![jmmease](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jmmease/32/3706_2.png) [@jmmease](https://community.plotly.com/u/jmmease)\
**Post date:** [May 16, 2019, 11:47am UTC](https://community.plotly.com/t/error-displaying-figurewidget/11974/24 "2019-05-16T11:47:38Z")

</div>

Hi @mtkilic,

I don’t see any issue with the packages/extensions you have installed. Do the built-in ipywidgets display for you? e.g. `ipywidgets.IntSlider()`.

-Jon

---

<div class="post-metadata">

**Author:** ![mtkilic](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@mtkilic](https://community.plotly.com/u/mtkilic)\
**Post date:** [May 16, 2019, 2:31pm UTC](https://community.plotly.com/t/error-displaying-figurewidget/11974/25 "2019-05-16T14:31:08Z")

</div>

@jmmease I have solve this issue. Now I can display. Thanks

---

<div class="post-metadata">

**Author:** ![rabeez](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@rabeez](https://community.plotly.com/u/rabeez)\
**Post date:** [May 31, 2019, 7:04pm UTC](https://community.plotly.com/t/error-displaying-figurewidget/11974/26 "2019-05-31T19:04:42Z")

</div>

I had the `FigureWidget` stuff working a while back with the exact package versions from the changelog. I installed plotly\_express last week and it updated plotly to 3.9 (previously 3.5 i think), now the `FigureWidget` isn’t working. I get

```auto
Module plotlywidget, semver range ^0.10.0 is not registered as a widget module

```

in the browser console.

Can pltly\_express and `FigureWidget` not work together in JupyterLab currently, or is there a workaround (maybe the versions in the changelog haven’t been updated for latest plotly.py version?).

---

<div class="post-metadata">

**Author:** ![jmmease](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jmmease/32/3706_2.png) [@jmmease](https://community.plotly.com/u/jmmease)\
**Post date:** [June 1, 2019, 11:27am UTC](https://community.plotly.com/t/error-displaying-figurewidget/11974/27 "2019-06-01T11:27:57Z")

</div>

Hi @rabeez,

The current compatible versions of plotly.py and the `plotlywidget` jupyterlab extension can be found in the installation instructions in the README at [https://github.com/plotly/plotly.py#installation](https://github.com/plotly/plotly.py#installation). I think you’re right that the changelog versions haven’t been updated recently.

-Jon

---

<div class="post-metadata">

**Author:** ![Alexboiboi](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/alexboiboi/32/6420_2.png) [@Alexboiboi](https://community.plotly.com/u/Alexboiboi)\
**Post date:** [July 3, 2019, 7:33pm UTC](https://community.plotly.com/t/error-displaying-figurewidget/11974/28 "2019-07-03T19:33:43Z")

</div>

Hi there,

Is the README now up to date ? I cannot make the extension work with jlab 1.0.1?

-Alex

---

<div class="post-metadata">

**Author:** ![jmmease](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jmmease/32/3706_2.png) [@jmmease](https://community.plotly.com/u/jmmease)\
**Post date:** [July 4, 2019, 12:34pm UTC](https://community.plotly.com/t/error-displaying-figurewidget/11974/29 "2019-07-04T12:34:00Z")

</div>

Hi @Alexboiboi,

JupyterLab 1.0 support is coming soon (in plotly.py 4.0). If you’d like to try out the development releases, see the instructions in the `v4_integration` branch README at [https://github.com/plotly/plotly.py/blob/v4\_integration/README.md](https://github.com/plotly/plotly.py/blob/v4_integration/README.md).

Follow the versions there carefully, and note the the `@jupyterlab/plotly-extension` extension has been replaced by the `jupyterlab-plotly` extension.

Thanks!  
-Jon

---

<div class="post-metadata">

**Author:** ![Alexboiboi](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/alexboiboi/32/6420_2.png) [@Alexboiboi](https://community.plotly.com/u/Alexboiboi)\
**Post date:** [July 4, 2019, 1:59pm UTC](https://community.plotly.com/t/error-displaying-figurewidget/11974/30 "2019-07-04T13:59:42Z")

</div>

Ok cool, thanks @jmmease

---

<div class="post-metadata">

**Author:** ![krinsman](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/krinsman/32/8695_2.png) [@krinsman](https://community.plotly.com/u/krinsman)\
**Post date:** [December 6, 2019, 5:18am UTC](https://community.plotly.com/t/error-displaying-figurewidget/11974/31 "2019-12-06T05:18:34Z")

</div>

I had the issue twice (on two different machines) where, after following the advice at

> [@Error Displaying FigureWidget](https://community.plotly.com/t/error-displaying-figurewidget/11974/4):
>
> Hi @vhphan, Can you double check that you have the specified versions of JupyterLab and the JupyterLab extensions installed as well? pip install jupyterlab==0.32.1 export NODE\_OPTIONS=--max-old-space-size=4096 jupyter labextension install @jupyter-widgets/jupyterlab-manager@0.35 # install the Jupyter widgets extension jupyter labextension install plotlywidget@0.2 # FigureWidget support jupyter labextension install @jupyterlab/plotly-extension@0.16 # offline iplot support If things still are…

and installing the `plotlywidget` JupyterLab extension, `jupyter lab build` failed for me.

I was able to fix it in both cases by running:

```auto
jlpm cache clean

jupyter lab build

```

Hope this helps someone else!

(Basically `jlpm` is an alias for the JupyterLab installed yarn, and then running `jlpm` will reset that yarn’s stale `yarn.lock`, which was causing the false inability to build.)

[Previous page](https://community.plotly.com/t/error-displaying-figurewidget/11974.md?page=1)
