docstr: Jupyter Widget for displaying and updating Altair Charts, and
  retrieving selection and parameter values
  
  Parameters
  ----------
  chart: Chart
      Altair Chart instance
  debounce_wait: int
       Debouncing wait time in milliseconds. Updates will be sent from the client to the kernel
       after debounce_wait milliseconds of no chart interactions.
  max_wait: bool
       If True (default), updates will be sent from the client to the kernel every debounce_wait
       milliseconds even if there are ongoing chart interactions. If False, updates will not be
       sent until chart interactions have completed.
  debug: bool
       If True, debug messages will be printed
  embed_options: dict
       Options to pass to vega-embed.
       See https://github.com/vega/vega-embed?tab=readme-ov-file#options
docstr_tok: ["Jupyter","Widget","for","displaying","and","updating","Altair","Charts",",","and","retrieving","selection","and","parameter","values","Parameters","--","--","--","--","--","chart",":","Chart","Altair","Chart","instance","debounce_wait",":","int","Debouncing","wait","time","in","milliseconds",".","Updates","will","be","sent","from","the","client","to","the","kernel","after","debounce_wait","milliseconds","of","no","chart","interactions",".","max_wait",":","bool","If","True","(","default",")",",","updates","will","be","sent","from","the","client","to","the","kernel","every","debounce_wait","milliseconds","even","if","there","are","ongoing","chart","interactions",".","If","False",",","updates","will","not","be","sent","until","chart","interactions","have","completed",".","debug",":","bool","If","True",",","debug","messages","will","be","printed","embed_options",":","dict","Options","to","pass","to","vega-embed",".","See","https",":","\/\/github.com\/vega\/vega-embed","?","tab=readme-ov-file","#","options"]
code: def __init__(
      self,
      chart: TopLevelSpec,
      debounce_wait: int = 10,
      max_wait: bool = True,
      debug: bool = False,
      embed_options: Optional[dict] = None,
      **kwargs: Any,
  ):
      """
      Jupyter Widget for displaying and updating Altair Charts, and
      retrieving selection and parameter values
  
      Parameters
      ----------
      chart: Chart
          Altair Chart instance
      debounce_wait: int
           Debouncing wait time in milliseconds. Updates will be sent from the client to the kernel
           after debounce_wait milliseconds of no chart interactions.
      max_wait: bool
           If True (default), updates will be sent from the client to the kernel every debounce_wait
           milliseconds even if there are ongoing chart interactions. If False, updates will not be
           sent until chart interactions have completed.
      debug: bool
           If True, debug messages will be printed
      embed_options: dict
           Options to pass to vega-embed.
           See https://github.com/vega/vega-embed?tab=readme-ov-file#options
      """
      self.params = Params({})
      self.selections = Selections({})
      super().__init__(
          chart=chart,
          debounce_wait=debounce_wait,
          max_wait=max_wait,
          debug=debug,
          embed_options=embed_options,
          **kwargs,
      )
  
imports: import json
  import anywidget
  import traitlets
  import pathlib
  from typing import Any, Set, Optional
  import altair
  from altair.utils._vegafusion_data import using_vegafusion, compile_to_vegafusion_chart_state
  from altair import TopLevelSpec
  from altair.utils.selection import IndexSelection, PointSelection, IntervalSelection
label_desc: Use image node_id 2 to create a new JupyterChart object from inherited base classes: anywidget with example: obj = JupyterChart(chart, debounce_wait, max_wait, debug, embed_options)