IPython/Jupyter notebook module for [Vega](https://vega.github.io/vega), and [Vega-Lite](https://vega.github.io/vega-lite).
npm install jupyter-vegaIPython/Jupyter notebook module for Vega 5, and Vega-Lite 4. Notebooks with embedded visualizations can be viewed on GitHub and nbviewer. If you use JupyterLab (not the notebook), you don't need to install this extension since JupyterLab comes with built-in support for Vega and Vega-Lite.
Available on pypi and Conda Forge as vega.

To install vega and its dependencies from the Python Package Index usingpip, use the following commands:
``sh`
pip install jupyter pandas vega
pip install --upgrade notebook # need jupyter_client >= 4.2 for sys-prefix below
jupyter nbextension install --sys-prefix --py vega
jupyter nbextension enable --py --sys-prefix vega
If you use Conda, you probably already have the latest versions of the notebook and pandas installed. To install vega extension run:
`sh`
conda install vega
Once the package is installed, run
`sh`
jupyter notebookvega
to launch the Jupyter notebook server, and use within the notebook.
See the example notebooks for Vega-Lite and Vega.
To run the notebooks yourself, you need to get the file cars.json.
This project uses Poetry. If you prefer a local virtual environment, run poetry config virtualenvs.in-project true first. Install requirements: poetry install.
Then activate the virtual environment with poetry shell.
Symlink files instead of copying files:
`sh`
jupyter nbextension install --py --symlink --sys-prefix vega
jupyter nbextension enable --py --sys-prefix vega
Run kernel with jupyter notebook. Run the tests with pytest vega.
To rebuild the JavaScript continuously, run yarn watch.
* Update the JavaScript dependencies by changing package.json (e.g. with ncu).yarn
* Run .pyproject.toml
* Update the version number in (with poetry version [VERSION]), package.json, _frontend.py, and __init__.pyyarn build
* Rebuild the JavaScript with .git push --tags
* Make sure that everything still works (launch notebook and widgets and try the examples).
* Add a git tag.
* .npm publish
* Run to update https://www.npmjs.com/package/jupyter-vega.poetry publish --build
* Then run to update https://pypi.python.org/pypi/vega.
The Conda feedstock for this package is at https://github.com/conda-forge/vega-feedstock. It should update automatically but we may need to merge a pull request with the updates.
ipyvega uses the same technical solution as ipywidgets for visual regression testing (i.e. Galata).
Therefore, the instructions provided for ipywidgets visual regression tests apply here.
Currently:
* ipyvega uses ui-tests/tests/notebooks/vega.ipynb notebook for testingui-tests/tests/vega.test.ts-snapshots/` directory.
* reference images are in the