Skip to content

Simple Notebook with interactive Altair graph

Trying basic notebook with interactive graph of the iris dataset

Test fast template notebook posts

import altair as alt

Make an Altair graph

from vega_datasets import data
iris = data.iris()

alt.Chart(iris).mark_point().encode(
    x='petalLength',
    y='petalWidth',
    color='species',
    tooltip='species'
).interactive()

Enjoy :)

Comments