Skip to content

IPython/Jupyter notebook module for Vega and Vega-Lite

License

Notifications You must be signed in to change notification settings

brickinedifice/ipyvega

 
 

Repository files navigation

IPython Vega 3 PyPI Build Status

IPython/Jupyter notebook module for Vega 3, and Vega-Lite 2. Notebooks with embedded visualizations can be viewed on github and nbviewer.

Available on pypi.

screenshot

Install and run

Python Package Index

To install vega and its dependencies from the Python Package Index using pip, use the following commands:

pip install jupyter pandas vega3
pip install --upgrade notebook  # need jupyter_client >= 4.2 for sys-prefix below
jupyter nbextension install --sys-prefix --py vega3  # not needed in notebook >= 5.3

From Source

To install from source, make sure you have jupyter and pandas installed, then download this repository and run

python setup.py install

Usage

Once the package is installed, run

jupyter notebook

to launch the Jupyter notebook server, and use vega 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.

Developers

Install requirements: pip install -r requirements.txt

Symlink files instead of copying files:

python setup.py develop
jupyter nbextension install --py --symlink vega3  # not needed in notebook >= 5.3

Run kernel: jupyter notebook

To rebuild the javascript continuously, run npm run watch.

Publish a new version to pypi with python3 setup.py sdist upload.

How to make a release

  • Update the javascript dependendencies by changing package.json
  • Run npm update
  • Rebuild the javascript with npm run build
  • Make sure that everything still works (launch notebook and try the examples)
  • Update the version number in package.json and __index__.py
  • git push
  • Run python setup.py sdist upload to update https://pypi.python.org/pypi/vega3

Resources

How to implement an nbextension.

About

IPython/Jupyter notebook module for Vega and Vega-Lite

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 95.8%
  • Jupyter Notebook 3.8%
  • Other 0.4%