Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update altair example in docs #1481

Closed
kylebarron opened this issue Nov 21, 2018 · 0 comments
Closed

Update altair example in docs #1481

kylebarron opened this issue Nov 21, 2018 · 0 comments

Comments

@kylebarron
Copy link
Contributor

As of Altair 2.0, running altair.enable_mime_rendering() is not necessary.
https://nteract.gitbooks.io/hydrogen/docs/Usage/Examples.html#static-plots

This works for me:

import altair as alt
from vega_datasets import data

iris = data.iris()

alt.Chart(iris).mark_point().encode(
    x='petalLength',
    y='petalWidth',
    color='species'
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant