Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Register entry point for pandas backend #46

Open
TomAugspurger opened this issue Aug 22, 2019 · 5 comments
Open

Register entry point for pandas backend #46

TomAugspurger opened this issue Aug 22, 2019 · 5 comments

Comments

@TomAugspurger
Copy link

TomAugspurger commented Aug 22, 2019

pdvega could add an entrypoint to register itself with pandas: https://dev.pandas.io/development/extending.html#plotting-backends

Something like

# in setup.py
setup(  # noqa: F821
    ...,
    entry_points={
        "pandas_plotting_backends": [
            "altair = pdvega.<module>",
        ],
    },
)

where <module> is whatever module has the plot top-level method with the right signature.

@jakevdp
Copy link
Member

jakevdp commented Aug 22, 2019

My plan on this is to deprecate pdvega and create a new altair_pandas package that will implement the pandas API and register an altair entrypoint. Much of pdvega was written in vega directly rather than in Altair.

@TomAugspurger
Copy link
Author

Good to know. Do you have a rough timeline on that transition? The pandas 1.0 release will be sometime in October. It'd be nice if pandas' document had some rich examples using the various plotting backends. That doesn't have to be tied to the 1.0 release, but we may get a bit of extra attention since it's 1.0.

@jakevdp
Copy link
Member

jakevdp commented Aug 22, 2019

Good to know. I'd like to tackle it soon, but I don't have as much time for these things as I used to 😄

@TomAugspurger
Copy link
Author

TomAugspurger commented Aug 22, 2019 via email

@jakevdp
Copy link
Member

jakevdp commented Aug 23, 2019

See here: https://github.com/altair-viz/altair_pandas

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants