Skip to content

Update to Altair 5 #167

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

Closed
joelostblom opened this issue May 16, 2023 · 3 comments · Fixed by #182
Closed

Update to Altair 5 #167

joelostblom opened this issue May 16, 2023 · 3 comments · Fixed by #182
Labels
enhancement New feature or request

Comments

@joelostblom
Copy link
Contributor

Altair 5 was recently released and it fixes some issues from before (like more reliable saving and working with large datasets, https://altair-viz.github.io/releases/changes.html), as well as introduces a more convenient (optional) syntax for parameter options. I'm happy to make the changes if we are OK updating the package on our service for the fall. This should be done after #160 is merged imo.

@trevorcampbell
Copy link
Contributor

New image on the main branch uses Altair 5 -- I needed to rebuild it while working on PDF builds. If we need to bring it back to an earlier version we can pin it and rebuild the image.

@trevorcampbell trevorcampbell added the enhancement New feature or request label Jul 11, 2023
@joelostblom
Copy link
Contributor Author

That's great! Could I go ahead an update to the more succinct syntax after we merge #160? The main change is that option parameters now can be written as methods, so something redundant like

x=alt.X('Horsepower', axis=alt.Axis(tickMinStep=50))

could instead be written as

x=alt.X('Horsepower').axis(tickMinStep=50)

@trevorcampbell
Copy link
Contributor

Sounds like a good idea to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants