# Plotly 3.0.0 FiguerWidget not working

**URL:** <https://community.plotly.com/t/plotly-3-0-0-figuerwidget-not-working/11584>\
**Category:** 📊 Plotly Python\
**Created:** [July 7, 2018, 10:46pm UTC](https://community.plotly.com/t/plotly-3-0-0-figuerwidget-not-working/11584 "2018-07-07T22:46:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![gideonshalev](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@gideonshalev](https://community.plotly.com/u/gideonshalev)\
**Post date:** [July 7, 2018, 10:46pm UTC](https://community.plotly.com/t/plotly-3-0-0-figuerwidget-not-working/11584/1 "2018-07-07T22:46:28Z")

</div>

Just installed Plotly 3.0.0 and tried the new syntax suggested in the Medium article.  
When I print the widget, I get nothing (no plot shows up).  
When I then open the console, I see the following Javascript error:

Temp%20distribution%20for%20avg%20flight.ipynb#:1 Uncaught (in promise) Error: Script error for “plotlywidget”  
[http://requirejs.org/docs/errors.html#scripterror](http://requirejs.org/docs/errors.html#scripterror)  
at makeError (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:165)  
at HTMLScriptElement.onScriptError (require.js?v=6da8be361b9ee26c5e721e76c6d4afce:1732)

Am I missing something, maybe some dependency?  
I am running in Python 3.6.2

---

<div class="post-metadata">

**Author:** ![gideonshalev](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@gideonshalev](https://community.plotly.com/u/gideonshalev)\
**Post date:** [July 7, 2018, 11:35pm UTC](https://community.plotly.com/t/plotly-3-0-0-figuerwidget-not-working/11584/2 "2018-07-07T23:35:04Z")

</div>

Ah, the missing dependency was the newest version of the notebook module.  
Interesting that ‘pip install -U plotly’ will not automatically install that dependency…

---

<div class="post-metadata">

**Author:** ![LihiP](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@LihiP](https://community.plotly.com/u/LihiP)\
**Post date:** [July 9, 2018, 9:55am UTC](https://community.plotly.com/t/plotly-3-0-0-figuerwidget-not-working/11584/3 "2018-07-09T09:55:48Z")

</div>

Can you please specify what was the solution for this problem?  
Thanks!

---

<div class="post-metadata">

**Author:** ![bcd](https://avatars.discourse-cdn.com/v4/letter/b/ec9cab/32.png) [@bcd](https://community.plotly.com/u/bcd)\
**Post date:** [July 9, 2018, 10:55am UTC](https://community.plotly.com/t/plotly-3-0-0-figuerwidget-not-working/11584/4 "2018-07-09T10:55:56Z")

</div>

Hi @LihiP

Perhaps the information [here](https://github.com/plotly/plotly.py/pull/942#issue-170074665) about jupyter notebooks and ipywidgets may be of use to you.

---

<div class="post-metadata">

**Author:** ![LihiP](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@LihiP](https://community.plotly.com/u/LihiP)\
**Post date:** [July 9, 2018, 11:15am UTC](https://community.plotly.com/t/plotly-3-0-0-figuerwidget-not-working/11584/5 "2018-07-09T11:15:11Z")

</div>

Hi @bcd  
Thank you for this. however, I am using ipywidgets version 7.2.1 and notebook version 5.5.0 and it is still not working.

---

<div class="post-metadata">

**Author:** ![gideonshalev](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@gideonshalev](https://community.plotly.com/u/gideonshalev)\
**Post date:** [July 9, 2018, 3:21pm UTC](https://community.plotly.com/t/plotly-3-0-0-figuerwidget-not-working/11584/6 "2018-07-09T15:21:36Z")

</div>

I’m guessing that the issue has to do with dependencies. Unfortunately, pip install -U doesn’t force upgrade all the dependencies, so something _might_ be missing. For me, it was the notebook module. For you it might be something else.  
I would try running pip install -U plotly and look at the output from pip. Try and manually install everything that pip doesn’t. If that doesn’t help, respond to this thread again.

---

<div class="post-metadata">

**Author:** ![jack](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/jack/32/11_2.png) [@jack](https://community.plotly.com/u/jack)\
**Post date:** [July 10, 2018, 2:32am UTC](https://community.plotly.com/t/plotly-3-0-0-figuerwidget-not-working/11584/7 "2018-07-10T02:32:18Z")

</div>

FigureWidgets weren’t displaying for me - I had to update `ipywidgets` to get things working:

`pip3 install ipywidgets --upgrade`

FWIW, I had `ipywidgets-7.0.5` and upgraded to `ipywidgets-7.2.1`. With `7.2.1`, FigureWidgets display as expected 👌

---

<div class="post-metadata">

**Author:** ![LihiP](https://avatars.discourse-cdn.com/v4/letter/l/e5b9ba/32.png) [@LihiP](https://community.plotly.com/u/LihiP)\
**Post date:** [July 11, 2018, 11:10am UTC](https://community.plotly.com/t/plotly-3-0-0-figuerwidget-not-working/11584/8 "2018-07-11T11:10:36Z")

</div>

I went over all plotly dependencies, but all libraries seem to be up to date and above the requirement.  
if that makes any difference, I am using python 3 kernel within a notebook that is part of AWS SageMaker.

---

<div class="post-metadata">

**Author:** ![gideonshalev](https://avatars.discourse-cdn.com/v4/letter/g/57b2e6/32.png) [@gideonshalev](https://community.plotly.com/u/gideonshalev)\
**Post date:** [July 11, 2018, 3:33pm UTC](https://community.plotly.com/t/plotly-3-0-0-figuerwidget-not-working/11584/9 "2018-07-11T15:33:46Z")

</div>

I use python 3.6.2 and have no issues.  
Prior to executing the cell which causes the error (or isn’t displaying), open your javascript console.  
Then execute the cell.  
Are you seeing any js errors or warnings?

---

<div class="post-metadata">

**Author:** ![dhhagan](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/dhhagan/32/31_2.png) [@dhhagan](https://community.plotly.com/u/dhhagan)\
**Post date:** [July 16, 2018, 5:27pm UTC](https://community.plotly.com/t/plotly-3-0-0-figuerwidget-not-working/11584/10 "2018-07-16T17:27:34Z")

</div>

Not sure about anyone else, but I wasn’t even able to get the widgets module to install correctly due to JavaScript heap being out of memory:

```
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x100033dab node::Abort() [/usr/local/Cellar/node/10.5.0_1/bin/node]
 2: 0x10003557e node::FatalTryCatch::~FatalTryCatch() [/usr/local/Cellar/node/10.5.0_1/bin/node]
 3: 0x1001776a7 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/local/Cellar/node/10.5.0_1/bin/node]
 4: 0x100177649 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/local/Cellar/node/10.5.0_1/bin/node]
 5: 0x10045004a v8::internal::Heap::UpdateSurvivalStatistics(int) [/usr/local/Cellar/node/10.5.0_1/bin/node]
 6: 0x100451ced v8::internal::Heap::CheckIneffectiveMarkCompact(unsigned long, double) [/usr/local/Cellar/node/10.5.0_1/bin/node]
 7: 0x10044f3af v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/usr/local/Cellar/node/10.5.0_1/bin/node]
 8: 0x10044e300 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/local/Cellar/node/10.5.0_1/bin/node]
 9: 0x1004564f7 v8::internal::Heap::AllocateRawWithRetry(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [/usr/local/Cellar/node/10.5.0_1/bin/node]
10: 0x100434108 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [/usr/local/Cellar/node/10.5.0_1/bin/node]
11: 0x10062d8c5 v8::internal::Runtime_AllocateInNewSpace(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/Cellar/node/10.5.0_1/bin/node]
12: 0x2d837a9841bd 
13: 0x2d837a9d3a41
```

---

<div class="post-metadata">

**Author:** ![stahlmanDesign](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/stahlmandesign/32/9248_2.png) [@stahlmanDesign](https://community.plotly.com/u/stahlmanDesign)\
**Post date:** [February 5, 2020, 6:52pm UTC](https://community.plotly.com/t/plotly-3-0-0-figuerwidget-not-working/11584/11 "2020-02-05T18:52:32Z")

</div>

In many cases using Node 12.x fixes the problem because more memory is allocated by default.

But I have a case where it builds fine locally, but not on the server, using the same version of Node.
