PlotlyWidget.set_state

PlotlyWidget.set_state(sync_data)

Called when a state is received from the front-end.