# this is for merging figure level plotly objects side by side
# not for subplots like fig.add_trace(...)
# figurewidgets can be displayed only in a Jupyter Notebook
import plotly.express as px
import plotly.graph_objects as go
from ipywidgets import HBox, VBox
figs = []
for fig in subplots:
fig = px.bar(...)
fig = go.FigureWidget(fig)
figs.append(fig)
HBox(figs)