I am trying to generate programmatically multiple Figures on a single output, in Plotly. The examples in the docs for subplots (found here: https://plotly.com/python/subplots/) cannot be reproduced when go.Bar or go.Scatter is replaced by go.Figures.
Somebody suggested defining the figures as instances of go.FigureWidget()
and then using HBox (from the ipywidgets package for Jupiter Notebooks) as follows:
fig_subplots= HBox([fw1, fw2])
fig_subplots
But sadly this yields this weird result:
Same thing if I use .draw()
:
And without anything:
Any suggestions would be greatly appreciated! I am willing to not use Jupiter Notebooks if that is what is required.