dungan1103
dungan1103

Reputation: 23

Getting plotly.graph_objs attribute error for FigureWidget

I get the following error in Jupyter Notebook:

AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget'

I have verified that Plotly package is installed as is ipywidgets, Flask and Dash.

from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
import plotly.graph_objs as go
from plotly import figure_factory as FF
init_notebook_mode(connected=True)

Not sure what I need to install or update to get this to work.

Upvotes: 1

Views: 2895

Answers (1)

Gal Abadi
Gal Abadi

Reputation: 31

For me even when plotly was upgraded ipywidget wasn't. executing pip3 install ipywidgets --upgrade

make sure you enable these extensions on this notebook: jupyter nbextension enable --py widgetsnbextension --sys-prefix jupyter nbextension enable --py plotlywidget --sys-prefix

Upvotes: 1

Related Questions