home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where author_association = "MEMBER", issue = 99513363 and user = 5356122 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 1

  • clarkfitzg · 4 ✖

issue 1

  • build local docs using matplotlib Agg backend · 4 ✖

author_association 1

  • MEMBER · 4 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
128503193 https://github.com/pydata/xarray/pull/518#issuecomment-128503193 https://api.github.com/repos/pydata/xarray/issues/518 MDEyOklzc3VlQ29tbWVudDEyODUwMzE5Mw== clarkfitzg 5356122 2015-08-06T20:46:42Z 2015-08-06T20:46:42Z MEMBER

``` In [1]: import matplotlib

In [2]: import matplotlib.pyplot

In [3]: matplotlib.use('Agg') /Users/clark.fitzgerald/anaconda/envs/xray_dev/lib/python2.7/site-packages/matplotlib/init.py:1318: UserWarning: This call to matplotlib.use() has no effect because the backend has already been chosen; matplotlib.use() must be called before pylab, matplotlib.pyplot, or matplotlib.backends is imported for the first time.

warnings.warn(_use_error_msg) ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  build local docs using matplotlib Agg backend 99513363
128502431 https://github.com/pydata/xarray/pull/518#issuecomment-128502431 https://api.github.com/repos/pydata/xarray/issues/518 MDEyOklzc3VlQ29tbWVudDEyODUwMjQzMQ== clarkfitzg 5356122 2015-08-06T20:43:19Z 2015-08-06T20:43:19Z MEMBER

But really if people need to use a particular backend (like in our case) they should be setting it in the first place. Seaborn doesn't go beyond what pyplot does here, so I think it's ok.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  build local docs using matplotlib Agg backend 99513363
128502013 https://github.com/pydata/xarray/pull/518#issuecomment-128502013 https://api.github.com/repos/pydata/xarray/issues/518 MDEyOklzc3VlQ29tbWVudDEyODUwMjAxMw== clarkfitzg 5356122 2015-08-06T20:41:19Z 2015-08-06T20:41:19Z MEMBER

Yes, this is a little tricky. Internally Seaborn uses lots of pyplot. And importing pyplot sets the backend. So maybe they could try something like pyplot.switch_backend within their reset_orig function?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  build local docs using matplotlib Agg backend 99513363
128494659 https://github.com/pydata/xarray/pull/518#issuecomment-128494659 https://api.github.com/repos/pydata/xarray/issues/518 MDEyOklzc3VlQ29tbWVudDEyODQ5NDY1OQ== clarkfitzg 5356122 2015-08-06T20:15:57Z 2015-08-06T20:15:57Z MEMBER

Explanation-

Looks like the backend is set when Seaborn is imported. When building the docs we don't want to use an interactive backend.

``` (xray_dev)testimage ~/dev/xray/doc $ ipython Python 2.7.10 |Continuum Analytics, Inc.| (default, May 28 2015, 17:04:42)

...

In [1]: import seaborn

In [2]: import matplotlib

In [3]: matplotlib.use('Agg') /Users/clark.fitzgerald/anaconda/envs/xray_dev/lib/python2.7/site-packages/matplotlib/init.py:1318: UserWarning: This call to matplotlib.use() has no effect because the backend has already been chosen; matplotlib.use() must be called before pylab, matplotlib.pyplot, or matplotlib.backends is imported for the first time.

warnings.warn(_use_error_msg) ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  build local docs using matplotlib Agg backend 99513363

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 15.273ms · About: xarray-datasette