Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding tutorials to xarray documentation splash page #2378

Open
orianac opened this issue Aug 22, 2018 · 11 comments
Open

Adding tutorials to xarray documentation splash page #2378

orianac opened this issue Aug 22, 2018 · 11 comments

Comments

@orianac
Copy link

orianac commented Aug 22, 2018

I was looking at the dask splash page and I noticed it has some binder tutorials which are really nice:
screen shot 2018-08-22 at 3 28 06 pm

As a novice user of xarray, I thought it could be nice to add something like that to the readthedocs welcome page. I know that @jhamman already has some little tutorials prepared so it'd just be a matter of:

  1. Making sure an appropriate tutorial is selected,
  2. Getting the tutorial in the right place, and
  3. Linking the tutorial into the xarray documentation.

I'd be happy to try to add this piece, though it might take me a little while to get up to speed.

@jhamman
Copy link
Member

jhamman commented Aug 22, 2018

Thanks @orianac for posting this as an issue. I agree something like this would be really nice to showcase. I'm curious how others think this should be organized. My tutorials (Binder) are pretty basic and may not be the most impressive way to "wow" new users. I'm thinking we may be able identify 2 or 3 main use cases / patterns and build out some examples from there. Thoughts?

@shoyer
Copy link
Member

shoyer commented Aug 23, 2018

I agree that advertising tutorials prominently would be a real win. The current xarray documentation leans towards being an authoritative reference, which is less helpful for new users.

Throwing out some ideas for :

  • Xarray for geoscience users
    • load/save netCDF data
    • calculate climatologies
    • regridding/interpolation? maybe using xESMF?
  • Xarray for general data analysis
    • show how xarray does alignment like pandas
    • show how xarray does broadcasting (sort of like numpy)
    • show how xarray works easily with numpy and pandas
  • Xarray for parallel computing
    • show how everything scales up with dask?

@orianac
Copy link
Author

orianac commented Aug 23, 2018

Also, showcasing the nifty plotting functionality could be nice. As someone who spends so much time making plots, proof that it's easy to just do .plot() could be very persuasive for trying out xarray!

@jhamman
Copy link
Member

jhamman commented Aug 28, 2018

Calling volunteers to help develop some of these tutorials? I'll volunteer to setup a binder ready repository and review any notebooks that get put together.

@jhamman
Copy link
Member

jhamman commented Aug 28, 2018

see https://github.com/xarray-contrib/binder-tutorial for a start here. I opened specific issues for the three notebooks @shoyer identified.

@JiaweiZhuang
Copy link

Just FYI, I wrote a xarray tutorial at https://github.com/geoschem/GEOSChem-python-tutorial with Binder enabled.

I taught it in several GEOS-Chem user workshops and it turned out to work pretty well. Most of our users only know MATLAB&IDL, so I have to teach Python from scratch and then introduce xarray. I found IDL vs xarray a good example to "wow" new users. Manipulating NetCDF files is a real pain in those old languages. There is also a chapter on xESMF, of course😉

I use GEOS-Chem data as an example, but most contents are quite general and should be useful for other geoscience users.

@rabernat
Copy link
Contributor

I plan on getting this started during the Xarray SciPy sprint on Saturday.

I would like to see a high-level tutorials heading in our documentation, like this

image

(I'm not proposing to eliminate the User Guide, I just suck at annotating screenshots.)

I think the "example" page should be refactored into more verbose tutorials. The examples are a bit stale.

Ideas? Feedback?

@dcherian
Copy link
Contributor

I think we should combine the example notebooks with "gallery"

@rabernat
Copy link
Contributor

@dcherian - in Pangeo we are using sphinx-nbexamples instead of sphinx-gallery. I like it more becuase you provide the examples as notebooks, rather than scripts, which is better suited to longer, more detailed examples.

How would you feel about refactoring the gallery to use sphinx-nbexamples, and then using this for the tutorials as well?

@dcherian
Copy link
Contributor

I think that sounds great and compatible with the binder ideas on this thread

@rabernat
Copy link
Contributor

FYI in the scipy19-docs branch we are now using nbsphinx. I couldn't get sphinx-nbexamples to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants