question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Graph Objs has no attribute FigureWidget

See original GitHub issue
import plotly.graph_objs as ago
figure_widget = getattr(go, "FigureWidget")
E   AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget'

This is what I obtain after running tests on a Gitlab CI server. Even though the tests run just fine locally. Plotly versions are 3.5.0 both locally and on the server.

I tried importing plotly on an interactive ipython shell (no notebook) and the module does have FigureWidget.

Can’t provide a reproducible example for gitlab CI server, so any clues on this?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
jonmmeasecommented, Jun 19, 2019

Hi @pedroallenrevez ,

Can you doublecheck that you have ipywidgets installed in your CI environment? FigureWidget won’t be available otherwise.

2reactions
jonmmeasecommented, Jul 16, 2019

Hi @ned2 , thanks for the suggestion. We have discussed this a bit in https://github.com/plotly/plotly.py/issues/1111. I’m going to close this issue in favor of that one. Feel free to chime in over there if you have more thoughts on the current situation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting plotly.graph_objs attribute error for FigureWidget
I get the following error in Jupyter Notebook: AttributeError: module 'plotly.graph_objs' has no attribute ...
Read more >
module 'plotly.graph_objs' has no attribute 'FigureWidget' after ...
I upgraded to Plotly 4.7 as recommended by the Dash 1.12.0 release post, but after doing so I get the error message: AttributeError:...
Read more >
module 'plotly.graph_objs' has no attribute 'FigureWidget ...
AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget'. I'm running a dash app on python 3.8. I have fully up to date ...
Read more >
python-plotly-4.7.1-bp152.1.1 - SUSE Package Hub -
- update to version 4.7.1: * Fixed + Fix AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget' exception on from plotly.graph_objs import * ...
Read more >
Plotly - FigureWidget Class - Tutorialspoint
A scatter plot is displayed. Click on a location in the area which will be markd with red colour. Location. Plotly's FigureWidget object...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found