Installation

Altair can be installed, along with the example datastes in vega_datasets, using:

$ pip install altair vega_datasets

If you are using the conda package manager, the equivalent is:

$ conda install -c conda-forge altair vega_datasets

At this point, you should be able to open Jupyter Notebook or JupyterLab and execute any of the code from the Example Gallery. For more information on how to display charts in various notebook environments and non-notebook IDEs, see Displaying Altair Charts.

Dependencies

Altair has the following dependencies, all of which are installed automatically with the above installation commands:

To run Altair’s full test suite and build Altair’s documentation requires a few additional dependencies:

Development Install

The Altair source repository is available on GitHub. Once you have cloned the repository and installed all the above dependencies, run the following command from the root of the repository to install the master version of Altair:

$ pip install -e .

To install development dependencies as well, run

$ pip install -e .[dev]

If you do not wish to clone the source repository, you can install the development version directly from GitHub using:

$ pip install -e git+https://github.com/altair-viz/altair.git