databricks_utils.vega.vega_embed

databricks_utils.vega.vega_embed(spec, display=None, **kwargs)

Display a vega chart. Also return the HTML to display the vega chart.

Parameters:
  • display – Callable to render the resultant HTML (e.g. displayHTML).
  • kwargs – See https://github.com/vega/vega-embed for the vega embed settings.