home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 539394615

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
539394615 MDExOlB1bGxSZXF1ZXN0MzU0Mzc5Nzk2 3640 Add entrypoint for plotting backends 13301940 closed 0     14 2019-12-18T01:11:08Z 2023-06-16T22:52:17Z 2021-09-26T21:53:42Z MEMBER   1 pydata/xarray/pulls/3640

Libraries, including xarray, register backends via entrypoints. Xarray adds an EntryPoint "group" in its setup.py. Third party libraries add items to that group in their setup.pys.

Xarray and the third-party library don't need to talk to each other directly to register a backend. They talk through pkg_resources.

For instance, hvplot/holoviews would add an EntryPoint for xarray_plotting_backends in its setup.py:

python entry_points={"xarray_plotting_backends": ['holoviews = hvplot:plotting']}

and xarray users should be able to achieve what @jsignell proposed in #3553:

```python import xarray as xr air = xr.tutorial.open_dataset('air_temperature').load().air xr.set_options(plotting_backend='holoviews')

air.isel(time=500).plot() ```

  • [ ] Closes #3553
  • [x] Tests added
  • [x] Passes black . && mypy . && flake8
  • [ ] Fully documented, including whats-new.rst for all changes and api.rst for new API
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/3640/reactions",
    "total_count": 2,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 2,
    "rocket": 0,
    "eyes": 0
}
    13221727 pull

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 14 rows from issue in issue_comments
Powered by Datasette · Queries took 236.937ms · About: xarray-datasette