home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 668793103

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/issues/4295#issuecomment-668793103 https://api.github.com/repos/pydata/xarray/issues/4295 668793103 MDEyOklzc3VlQ29tbWVudDY2ODc5MzEwMw== 1217238 2020-08-04T19:52:30Z 2020-08-04T19:52:30Z MEMBER

and in formatting_html.py

pkg_resources.resource_string("xarray", fname).decode("utf8")

This is used for pulling out static files (CSS/HTML) for xarray's HTML repr.

We could inline these resources as Python strings, but I think using separate files is cleaner and to my knowledge there is no better alternative than pkg_resources prior to Python 3.7.

On Python 3.7 we could use importlib.resources: https://docs.python.org/3/library/importlib.html#module-importlib.resources

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