home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1240883537

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/pull/7000#issuecomment-1240883537 https://api.github.com/repos/pydata/xarray/issues/7000 1240883537 IC_kwDOAMm_X85J9mFR 35968931 2022-09-08T15:34:11Z 2022-09-08T15:34:11Z MEMBER

Hey @JessicaS11! Nice to see you here. This is a going to be a great first-time contribution!

I know that it is more work but I think it would be more beneficial to have this information formated nicely than simply returning some lists. Maybe similar to a pandas dataframe?

One approach might be to add a nice __str__, __repr__, (or even _repr_html_) to the BackendEntrypoint class. That way printing a list (or better a dict) of the engine-specific subclasses would automatically look decent. Something roughly like

```python class BackendEntryPoint: ...

def __str__(self) -> str:
    txt += self.backend_description
    if self.backend_url:
        txt += f"\nFind more info at {self.backend_url}"
    return txt

```

What might be clearer is if this backend class knew it's own name, but I'm not sure it can, hmmm

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  1363829843
Powered by Datasette · Queries took 0.701ms · About: xarray-datasette