I’m rewriting some existing code in Jupyter notebooks to leverage the plot.ly 3.x APIs. I’m following the migration guide (https://github.com/plotly/plotly.py/blob/master/migration-guide.md). In the example:
import plotly import plotly.graph_objs as go f = go.FigureWidget() f # printing the widget will display it
“This means that
plotly.offline.init_notebook_mode() are no longer required (although still supported).”
It states that iplot is no longer required. I’m generating plots in a for loop and was previously using
iplot for this. If I just “print” the figure object is indicated above, the plots don’t appear.
What’s the proper method in plot.ly 3.x to display FigureWidget plots from a loop?