AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget' after upgrading to Plotly 4.7

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: module 'plotly.graph_objs' has no attribute 'FigureWidget'

the specific line that is triggering this is:

import plotly.figure_factory as ff

Any suggestions? I’ve downgraded back to 4.6.0 for the time being. I did notice that Plotly 4.7 took quite a long time to install, not sure if this is relevant.

Thanks for letting us know. This issue was also reported in We’ll work on a fix right away, but for now the workaround is to install the ipywidgets package.

We’ll release version 4.7.1 later today with this fix. Thanks for the very clear report and apologies for the breakage :slight_smile:

4.7.1 is released :slight_smile:

1 Like