dominic2017 / altair_notebooks

Tutorial and Examples Jupyter Notebooks for Altair

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jupyter Notebooks for Altair

This repository contains tutorial and example Jupyter Notebooks for Altair.

Examples Index

You can browse static version of these notebooks here on GitHub, or click one of the badges below to run these notebooks on either Binder or Colab.

Binder Colab

Example

Here is an example using Altair to quickly visualize and display a dataset with the native Vega-Lite renderer in the JupyterLab:

import altair as alt

# to use with Jupyter notebook (not JupyterLab) run the following
# alt.renderers.enable('notebook')

# load a simple dataset as a pandas DataFrame
from vega_datasets import data
cars = data.cars()

alt.Chart(cars).mark_point().encode(
    x='Horsepower',
    y='Miles_per_Gallon',
    color='Origin',
)

Altair Visualization

About

Tutorial and Examples Jupyter Notebooks for Altair

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Jupyter Notebook 99.9%Language:Python 0.1%Language:HTML 0.0%Language:Shell 0.0%