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

ENH: add Chart.serve() command to serve HTML #197

Merged
merged 3 commits into from
Sep 12, 2016
Merged

Conversation

jakevdp
Copy link
Collaborator

@jakevdp jakevdp commented Sep 7, 2016

This PR adds a functionality to create altair plots from outside the Jupyter notebook; e.g.

from altair import Chart, load_dataset

cars = load_dataset('cars')

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

chart.serve()

The final line will create a local web server, and by default launch a web browser window showing this visualization.

@jakevdp
Copy link
Collaborator Author

jakevdp commented Sep 12, 2016

I'm going to merge this; we can iterate later if needed.

@jakevdp jakevdp merged commit e9e5d7c into vega:master Sep 12, 2016
@jakevdp jakevdp deleted the server branch September 12, 2016 20:34
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

Successfully merging this pull request may close these issues.

1 participant