-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
prefer the objects _repr_inline_ over xarray's custom reprs #5352
Conversation
I don't think we need tests (or a whats-new) for this so this should be ready for merging. The only issue notable change I think users can see is that when (if?) |
I wonder if |
hmm... adding I'm also not quite sure I get your point about the name: |
It's more that Other possibilities:
|
I see your points. I chose the name as However, as I said I don't think it matters if the name is reused in a different context, as long as that is not incompatible with our use: we only care about arrays. Which is why I would slightly prefer the second alternative (a generic name and a parameter which is interpreted depending on the context). The only issue I have is that it's usually not a good idea to extend the API unless there's a specific need so I'm somewhat reluctant to add that parameter. |
in any case, I think any changes to the signature of |
I agree, let's discuss this in #5372 |
In preparation of pushing these upstream, this increases the priority of the
_repr_inline_
implementation ofdask
orsparse
(once they are implemented) over our own custom functions.pre-commit run --all-files
whats-new.rst