pydata / pydata/xarray

REPR: Allow accessor to be included in the repr

Open
#11,451 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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:

Image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.