class_docstr: Base class for FigureWidget. The FigureWidget class is code-generated as a
  subclass
class_docstr_tok: ["Base","class","for","FigureWidget",".","The","FigureWidget","class","is","code-generated","as","a","subclass"]
docstr: Process Plotly.restyle message from the frontend
docstr_tok: ["Process","Plotly.restyle","message","from","the","frontend"]
code: def _handler_js2py_restyle(self, change):
      """
      Process Plotly.restyle message from the frontend
      """
  
      # Receive message
      # ---------------
      restyle_msg = change["new"]
  
      if not restyle_msg:
          self._js2py_restyle = None
          return
  
      style_data = restyle_msg["style_data"]
      style_traces = restyle_msg["style_traces"]
      source_view_id = restyle_msg["source_view_id"]
  
      # Perform restyle
      # ---------------
      self.plotly_restyle(
          restyle_data=style_data,
          trace_indexes=style_traces,
          source_view_id=source_view_id,
      )
  
      self._js2py_restyle = None
  
imports: import uuid
  from importlib import import_module
  import os
  import numbers
  import ipywidgets
  from traitlets import List, Unicode, Dict, observe, Integer
  from .basedatatypes import BaseFigure, BasePlotlyType
  from .callbacks import BoxSelector, LassoSelector, InputDeviceState, Points
  from .serializers import custom_serializers
  from .version import __frontend_version__
label_desc: Use image node_id 11 for calling the BaseFigureWidget obj's underlying member method code with example usage: obj._handler_js2py_restyle(change) without return types