https://altair-viz.github.io/index.html
Altairis a declarative statistical visualization library for Python, based on Vega and Vega-Lite, and the source is available on GitHub.
With Altair, you can spend more time understanding your data and its meaning. Altair’s API is simple, friendly and consistent and built on top of the powerful Vega-Lite visualization grammar. This elegant simplicity produces beautiful and effective visualizations with a minimal amount of code.
Getting StartedOverview
Installation
Basic Statistical Visualization
GalleryExample Gallery
User GuideSpecifying Data in Altair
Encodings
Marks
Data Transformations
Bindings, Selections, Conditions: Making Charts Interactive
Top-Level Chart Configuration
Compound Charts: Layer, HConcat, VConcat, Repeat, Facet
Scale and Guide Resolution
Saving Altair Charts
Customizing Visualizations
Times and Dates in Altair
Frequently Asked Questions
Display Troubleshooting
Altair Renderers
Altair Internals: Understanding the Library
API Reference
Altair Ecosystem
Case StudiesExploring Seattle Weather
Advanced UsageImporting Vega & Vega-Lite Versions
Displaying Charts in Various Frontends
Customizing Renderers
Data transformers
Installation
To use Altair for visualization, you need to install two sets of toolsThe core Altair Package and its dependencies
The renderer for the frontend you wish to use (i.e. Jupyter Notebook, JupyterLab, Colab, or nteract)
Additionally, Altair’s documentation makes use of the vega_datasets package, and so it is included in the installation instructions below.
Depending on the frontend you would like to use, the instructions differ slightly. See the following instructions for your chosen frontend:Quick Start: Altair + JupyterLab
Quick Start: Altair + Notebook
Quick Start: Altair + Colab
Quick Start: Altair + JupyterLab
We recommend installing Altair with JupyterLab. If you would like to use it with the classic notebook, see Quick Start: Altair + Notebook.
Altair version 3 works best with JupyterLab version 1.0 or later.
To install JupyterLab and Altair with conda, run the following command:$ conda install -c conda-forge altair vega_datasets jupyterlab
To install JupyterLab and Altair with pip, run the following command:$ pip install -U altair vega_datasets jupyterlab
Once this is finished, run:$ jupyter lab
In the browser window that launches, select “File”->”New”->”Notebook” and then click “Select” without changing the kernel (it should say “Python 2” or “Python 3” depending on which Python version you are running).