REPR: Allow accessor to be included in the repr
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 4.2k
- Forks
- 1.4k
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 14
Description
Is your feature request related to a problem?
If I have an accessor that holds useful information outside of core xarray's scope then I would like to be able to see things about it in the repr.
e.g. I have this ome-zarr (ngff) accessor with a repr:
and id like that to be under a collapsible accessors in the repr
Describe the solution you'd like
repr (both text and html) also include any active accessors. This will require having some way to keep track of what accessors we have.
Describe alternatives you've considered
No response
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating xarray's text and HTML repr entry points, then trace how active accessors are registered or discovered. Compare the existing accessor repr shown in the issue with the current output. Done means active accessors appear in a collapsible accessors section in both representations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- developer-experience
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100