Reputation: 23
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
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