home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

10 rows where author_association = "MEMBER" and issue = 527323165 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 5

  • choldgraf 3
  • dcherian 3
  • TomNicholas 2
  • rabernat 1
  • keewis 1

issue 1

  • DOC: from examples to tutorials · 10 ✖

author_association 1

  • MEMBER · 10 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1439022617 https://github.com/pydata/xarray/issues/3564#issuecomment-1439022617 https://api.github.com/repos/pydata/xarray/issues/3564 IC_kwDOAMm_X85Vxb4Z choldgraf 1839645 2023-02-21T20:01:04Z 2023-02-21T20:01:04Z MEMBER

Oops I think the url just changed

https://chrisholdgraf.com/blog/2019/2019-10-22-xarray-neuro/

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: from examples to tutorials 527323165
1109951313 https://github.com/pydata/xarray/issues/3564#issuecomment-1109951313 https://api.github.com/repos/pydata/xarray/issues/3564 IC_kwDOAMm_X85CKINR dcherian 2448579 2022-04-26T15:39:16Z 2022-04-26T15:39:16Z MEMBER

We've started discussing how to reorganize the xarray-tutorial repository here: https://github.com/xarray-contrib/xarray-tutorial/issues/53 . Comments are welcome!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: from examples to tutorials 527323165
815887972 https://github.com/pydata/xarray/issues/3564#issuecomment-815887972 https://api.github.com/repos/pydata/xarray/issues/3564 MDEyOklzc3VlQ29tbWVudDgxNTg4Nzk3Mg== dcherian 2448579 2021-04-08T14:51:18Z 2022-04-21T20:29:35Z MEMBER

@hafez-ahmad can you ask this question in Discussions? https://github.com/pydata/xarray/discussions

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: from examples to tutorials 527323165
812669474 https://github.com/pydata/xarray/issues/3564#issuecomment-812669474 https://api.github.com/repos/pydata/xarray/issues/3564 MDEyOklzc3VlQ29tbWVudDgxMjY2OTQ3NA== dcherian 2448579 2021-04-02T19:05:59Z 2021-04-02T19:05:59Z MEMBER

Hi @apkrelling thanks for offering to help!

I think we can still add more domain-specific examples for meteorology and oceanography. @rabernat had some plans for this, maybe he can describe them.

how to migrate from numpy to xarray, if that is still needed.

This would be totally great!

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: from examples to tutorials 527323165
565605904 https://github.com/pydata/xarray/issues/3564#issuecomment-565605904 https://api.github.com/repos/pydata/xarray/issues/3564 MDEyOklzc3VlQ29tbWVudDU2NTYwNTkwNA== choldgraf 1839645 2019-12-13T20:57:01Z 2019-12-13T20:58:09Z MEMBER

For larger datasets, rather than storing them in github, a good approach is to create an archive on zenodo.org from which the data can be pulled.

Another note from MNE - we have a "datasets" sub-module that knows how to pull a few datasets from various online repositories (and in different structures). These store in a local folder (by default, ~/mne_data I believe) and then they get fast-loaded after the first download. Many of the datasets are then stored in online repositories like OSF (https://osf.io/rxvq7/).

For datasets that aren't gigantic it's a pretty nice system. https://mne.tools/stable/overview/datasets_index.html?highlight=datasets

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: from examples to tutorials 527323165
565539415 https://github.com/pydata/xarray/issues/3564#issuecomment-565539415 https://api.github.com/repos/pydata/xarray/issues/3564 MDEyOklzc3VlQ29tbWVudDU2NTUzOTQxNQ== TomNicholas 35968931 2019-12-13T17:50:15Z 2019-12-13T17:50:15Z MEMBER

Maybe there are at least 3 levels in there, actually...

The article linked by @keewis is well worth reading in my opinion - it describes a similar breakdown of different types of documentation:

  • Tutorials - learning-oriented lessons to get newcomers started,
  • How-to guides - goal-oriented series of steps to solve a specific problem,
  • Explanation - understanding-oriented discussion providing background and context,
  • Reference - information-oriented description of technical machinery.

I think for xarray there is another type, like you suggest @choldgraf:

  • Domain use-cases (/inspiration/showing-off) - showcase-oriented examples of groups using xarray in anger to do something cool.

I personally think xarray in general has reference nailed, lots of good explanation, but is generally a bit weaker on tutorials and how-to guides, and doesn't have many examples of domain use-cases.


I have some ideas for how-to's (maybe these should all go in a separate issue?):

  • How to migrate from numpy to xarray - Huge numbers of numpy users need to shown exactly what code should be replaced with what, and what they can then stop worrying about.
  • How to apply your own analysis functions - i.e. apply_ufunc how-to. The existing documentation on that is more along the lines of an explanation in my opinion, and I've certainly found apply_ufunc to have a steep learning curve.
  • How to organise domain-specific functionality - In-depth guide to various tricks you can pull with accessors, and when you might want to go beyond that. The documentation we have on that only shows a couple of possible approaches.

We need the tutorials to be able to run and build within a CI environment.

So @rabernat for small datasets what might be an appropriate max filesize? I literally have no idea. ~1MB?

a good approach is to create an archive on https://zenodo.org/

I'll look into that.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: from examples to tutorials 527323165
565516039 https://github.com/pydata/xarray/issues/3564#issuecomment-565516039 https://api.github.com/repos/pydata/xarray/issues/3564 MDEyOklzc3VlQ29tbWVudDU2NTUxNjAzOQ== rabernat 1197350 2019-12-13T16:50:45Z 2019-12-13T16:50:45Z MEMBER

if we're uploading real data for these, how big can/should the files be? It might affect what dataset I use.

This is a good question. We need the tutorials to be able to run and build within a CI environment. That's the main constraint.

For larger datasets, rather than storing them in github, a good approach is to create an archive on https://zenodo.org/ from which the data can be pulled.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: from examples to tutorials 527323165
565505147 https://github.com/pydata/xarray/issues/3564#issuecomment-565505147 https://api.github.com/repos/pydata/xarray/issues/3564 MDEyOklzc3VlQ29tbWVudDU2NTUwNTE0Nw== keewis 14808389 2019-12-13T16:21:37Z 2019-12-13T16:21:37Z MEMBER

https://www.divio.com/blog/documentation/ might be a useful reference for this?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: from examples to tutorials 527323165
561227888 https://github.com/pydata/xarray/issues/3564#issuecomment-561227888 https://api.github.com/repos/pydata/xarray/issues/3564 MDEyOklzc3VlQ29tbWVudDU2MTIyNzg4OA== TomNicholas 35968931 2019-12-03T15:48:05Z 2019-12-03T15:48:05Z MEMBER

@rabernat I'm going to be making a simple plasma physics-oriented xarray tutorial to give at a workshop next week.

I was wondering - if we're uploading real data for these, how big can/should the files be? It might affect what dataset I use.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: from examples to tutorials 527323165
557633282 https://github.com/pydata/xarray/issues/3564#issuecomment-557633282 https://api.github.com/repos/pydata/xarray/issues/3564 MDEyOklzc3VlQ29tbWVudDU1NzYzMzI4Mg== choldgraf 1839645 2019-11-22T18:04:50Z 2019-11-22T18:04:50Z MEMBER

In case it's helpful for inspiration, we took a similar approach with the MNE-Python package (neuro electrophysiology package):

https://mne.tools/stable/index.html

Maybe there are at least 3 levels in there, actually:

  • Examples - short vignettes that highlight one very specific piece of functionality, key-words for the example should be ctrl-fable in the title
  • Tutorials - in-depth guides through a common part of workflow that xarray wishes to enable, with more explanation and detail
  • Domain use-cases - examples of how xarray can facilitate use-cases in particular fields. Probably cover at a high-level many of the steps that multiple tutorials cover in-depth. More for "inspiration and buy-in" than in-depth learning.

Does that make sense?

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DOC: from examples to tutorials 527323165

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 52.74ms · About: xarray-datasette