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"]
code: def __init__(
      self,
      data=None,
      layout=None,
      frames=None,
      skip_invalid=False,
      **kwargs,
  ):
      # Call superclass constructors
      # ----------------------------
      # Note: We rename layout to layout_plotly because to deconflict it
      # with the `layout` constructor parameter of the `widgets.DOMWidget`
      # ipywidgets class
      super(BaseFigureWidget, self).__init__(
          data=data,
          layout_plotly=layout,
          frames=frames,
          skip_invalid=skip_invalid,
          **kwargs,
      )
  
      # Validate Frames
      # ---------------
      # Frames are not supported by figure widget
      if self._frame_objs:
          BaseFigureWidget._display_frames_error()
  
      # Message States
      # --------------
      # ### Layout ###
  
      # _last_layout_edit_id is described above
      self._last_layout_edit_id = 0
  
      # _layout_edit_in_process is set to True if there are layout edit
      # operations that have been sent to the frontend that haven't
      # completed yet.
      self._layout_edit_in_process = False
  
      # _waiting_edit_callbacks is a list of callback functions that
      # should be executed as soon as all pending edit operations are
      # completed
      self._waiting_edit_callbacks = []
  
      # ### Trace ###
      # _last_trace_edit_id: described above
      self._last_trace_edit_id = 0
  
      # _trace_edit_in_process is set to True if there are trace edit
      # operations that have been sent to the frontend that haven't
      # completed yet.
      self._trace_edit_in_process = False
  
      # View count
      # ----------
      # ipywidget property that stores the number of active frontend
      # views of this widget
      self._view_count = 0
  
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 1 to create a new BaseFigureWidget object from inherited base classes: BaseFigure, widgets with example: obj = BaseFigureWidget(data, layout, frames, skip_invalid)