home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

6 rows where issue = 99513363 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 2

  • clarkfitzg 4
  • jhamman 2

issue 1

  • build local docs using matplotlib Agg backend · 6 ✖

author_association 1

  • MEMBER 6
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
128498171 https://github.com/pydata/xarray/pull/518#issuecomment-128498171 https://api.github.com/repos/pydata/xarray/issues/518 MDEyOklzc3VlQ29tbWVudDEyODQ5ODE3MQ== jhamman 2443309 2015-08-06T20:28:00Z 2015-08-06T20:28:00Z MEMBER

nice. maybe raise an issue over at seaborn? I think they try to (should) have round trip zero net change to the matplotlib namespace if you do these two commands:

python import seaborn seaborn.reset_orig()

But since the backend can't be set twice, this doesn't work.

{
    "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
128492304 https://github.com/pydata/xarray/pull/518#issuecomment-128492304 https://api.github.com/repos/pydata/xarray/issues/518 MDEyOklzc3VlQ29tbWVudDEyODQ5MjMwNA== jhamman 2443309 2015-08-06T20:11:45Z 2015-08-06T20:11:45Z MEMBER

I just tested this locally and it works. Got to love the one line fixes. Once all the tests pass, I think you can merge this.

{
    "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 78.677ms · About: xarray-datasette