pull_requests: 354379796
This data as json
id | node_id | number | state | locked | title | user | body | created_at | updated_at | closed_at | merged_at | merge_commit_sha | assignee | milestone | draft | head | base | author_association | auto_merge | repo | url | merged_by |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
354379796 | MDExOlB1bGxSZXF1ZXN0MzU0Mzc5Nzk2 | 3640 | closed | 0 | Add entrypoint for plotting backends | 13301940 | <!-- Feel free to remove check-list items aren't relevant to your change --> 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() > ``` > > <img alt="Screen Shot 2019-11-20 at 12 44 26 PM" width="748" src="https://user-images.githubusercontent.com/4806877/69263575-953b2200-0b93-11ea-9e00-959e6bbee79d.png"> - [ ] 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 | 2019-12-18T01:11:08Z | 2023-06-16T22:52:17Z | 2021-09-26T21:53:42Z | fd45fd21313f7bc9e5dd83b31b0872003f93ea49 | 1 | 2866d184c096a31f44ae30962486e4fed7fea219 | 7bf9df9d75c40bcbf2dd28c47204529a76561a3f | MEMBER | 13221727 | https://github.com/pydata/xarray/pull/3640 |
Links from other tables
- 0 rows from pull_requests_id in labels_pull_requests