A Jupyter widget that renders Vega 5 and Vega-Lite 4 specifications. Version 4.1.0 requires Python >=3.8 and works with Jupyter Notebook, JupyterLab, and VSCode. It is typically installed alongside a conda environment for the Vega dependencies. The library is actively maintained on GitHub under the Vega organization.
pip install vegaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Render a simple Vega-Lite scatter plot in a Jupyter notebook.
Change imports to `from vega import VegaLite` (or Vega).
Run `conda install -c conda-forge vega vega-lite` or manually include the JS via a notebook extension.
Upgrade to vega>=4 and use Vega-Lite 4+ specifications.
Run `pip install vega` or `conda install -c conda-forge vega`.
Upgrade vega to >=4.0.0: `pip install --upgrade vega` and use `from vega import VegaLite`.
Convert DataFrame to records: `spec['data'] = {'values': df.to_dict('records')}`.