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

deprecate Vega wrappers and VegaLite 3 wrappers #2843

Merged
merged 9 commits into from Jan 21, 2023

Conversation

mattijn
Copy link
Contributor

@mattijn mattijn commented Jan 20, 2023

This PR provides deprecation warnings for altair.vega.v5 and altair.vegalite.v3 including mentioning that the modules will be removed in Altair v5.

So in practice it means that the alternative for:

import altair.vega.v5 as alt

and

import altair.vegalite.v3 as alt

is:

import altair as alt

I did not add AltairDeprecationWarnings for altair.vegalite.v4, since it is imported when doing import altair as alt. I was not able to distunguish

import altair.vegalite.v4 as alt

from

import altair as alt

@mattijn
Copy link
Contributor Author

mattijn commented Jan 20, 2023

@joelostblom, I'm not sure about my warning message on the Vega 5 wrappers, technically the mentioned alternative is not valid as it is for Vega Lite specifications.

@binste
Copy link
Contributor

binste commented Jan 21, 2023

Great to have these warnings. For the reason you stated, I think it's better to not mention the alternative of import altair as alt for the vega wrappers.

mattijn and others added 4 commits January 21, 2023 20:14
* DOC: remove unused section

* Disable uri-reference format check in jsonsschema (vega#2771)

* Disable uri-reference format check. Consistently use same validator across codebase

* Remove validation in SchemaInfo as not used anywhere and it referenced the wrong jsonschema draft

* Add compatibility for older jsonschema versions

* Improve comments

* Simplify validate_jsonschema

* Replace `iteritems` with `items` due to pandas deprecation (vega#2683)

* Add changelog entry.

* Bump version.

* Run black and flake8.

* Pin selenium in CI.

Co-authored-by: Jake VanderPlas <jakevdp@google.com>
Co-authored-by: Stefan Binder <binder_stefan@outlook.com>
Co-authored-by: Joel Ostblom <joelostblom@users.noreply.github.com>
@mattijn
Copy link
Contributor Author

mattijn commented Jan 21, 2023

Thanks for the review @binste! Merging this

@mattijn mattijn merged commit bc74815 into vega:v4.2.X Jan 21, 2023
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.

None yet

3 participants