Skip to content

Commit

Permalink
Finalize scipy2024 schedule (#278)
Browse files Browse the repository at this point in the history
* banner and toc link

* fix banner css and index links

* streamline
  • Loading branch information
scottyhq authored Jun 27, 2024
1 parent b328b01 commit 10f059e
Show file tree
Hide file tree
Showing 9 changed files with 93 additions and 124 deletions.
3 changes: 2 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ only_build_toc_files: true
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository
html:
# NOTE: this announcement shows up on all pages
#announcement: 'ℹ️ SciPy Tutorial Attendees. <a href="https://tutorial.xarray.dev/workshops/scipy2023/README.html">Click here </a>.'
announcement: '<a href="https://forms.gle/KEq7WviCdz9xTaJX6">The Xarray 2024 User Survey is live. Please take ~5 minutes to fill it out and help us improve Xarray.</a>'
#announcement: 'ℹ️ SciPy 2024 Tutorial Attendees. <a href="https://tutorial.xarray.dev/workshops/scipy2024/README.html">Click here </a>.'
home_page_in_navbar: false
use_edit_page_button: true
use_issues_button: true
Expand Down
4 changes: 0 additions & 4 deletions _static/announcement.css

This file was deleted.

3 changes: 3 additions & 0 deletions _static/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.bd-header-announcement {
background-color: var(--pst-color-info-bg);
}
9 changes: 5 additions & 4 deletions _toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,16 @@ parts:

- caption: Workshops
chapters:
- file: workshops/scipy2024/index.ipynb
- file: workshops/scipy2023/README
- file: workshops/oceanhackweek2020/README
sections:
- url: https://tutorial.xarray.dev/overview/xarray-in-45-min
title: Xarray in 45 minutes
- file: workshops/thinking-like-xarray/README
sections:
- url: https://tutorial.xarray.dev/intermediate/01-high-level-computation-patterns
title: High-level computation patterns
- file: workshops/oceanhackweek2020/README
sections:
- url: https://tutorial.xarray.dev/overview/xarray-in-45-min
title: Xarray in 45 minutes
- file: workshops/online-tutorial-series/README
sections:
- file: workshops/online-tutorial-series/01_xarray_fundamentals
Expand Down
52 changes: 30 additions & 22 deletions overview/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,44 @@

# Get Started

Most of the tutorial content here is written as Jupyter Notebooks that mix
## Organization

Tutorials are approximately divided into sections with increasing levels of complexity: `Fundamentals`, `Intermediate`, `Advanced`. You'll also find content specific to various `Workshops` hosted over the years, often with accompanying video recordings of instructors going over content and answering questions that come up.

Most of the tutorial content is written as Jupyter Notebooks that mix
code, text, visualization, and exercises. You can either browse rendered versions of these notebooks on this website, or _execute_ the code examples interactively.

You have two options for executing notebooks:
Many notebooks use special formatting ([Myst Markdown](https://mystmd.org/guide/quickstart-jupyter-lab-myst)) that renders best in a JupyterLab web interface. If you are new to JupyterLab, spend some time reviewing the [documentation and videos](https://jupyterlab.readthedocs.io/en/stable/getting_started/overview.html).

## Run code interactively

### On the Cloud

**1. On the Cloud:** Clicking [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/xarray-contrib/xarray-tutorial/HEAD?labpath=overview/fundamental-path/index.ipynb) will load a pre-configured Jupyter Lab interface with _all_ tutorial notebooks for you to run. _You have minimal computing resources and any changes you make will not be saved._ Any page with executable content also has a {octicon}`rocket;2em` icon in the upper right that will launch an interactive session for that particular page.
The easiest way to start modifying and experimenting with tutorial content is to launch a pre-configured server on the Cloud. This is easy thanks to several free resources which offer ephemeral computing instances (be aware you may loose your connection or work at any time)

#### Mybinder.org

Clicking [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/xarray-contrib/xarray-tutorial/HEAD) will load a pre-configured Jupyter Lab interface with _all_ tutorial notebooks for you to run. _You have minimal computing resources and any changes you make will not be saved._ Any page with executable content also has a {octicon}`rocket;2em` icon in the upper right that will launch an interactive session for that particular page.

```{warning}
Be patient, it can take a few minutes for a server to become available on the Cloud (Mybinder.org)!
```

**1. On your computer:** Running tutorials on your computer requires some setup:
#### GitHub Codespaces

This tutorial is available to run within [GitHub Codespaces](https://github.com/features/codespaces) - a preconfigured development environment running in Microsoft Azure.

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new/xarray-contrib/xarray-tutorial)

☝️ Click the button above to go to options window to launch a GitHub codespace.

You can choose from a selection of virtual machine types: 2 cores - 8 GB RAM should be sufficient for all code examples in this repository.
Additionally, you are able to chose from various configurations for specific workshops (such as Scipy2024).
GitHub currently gives every user [120 vCPU hours per month for free](https://docs.github.com/en/billing/managing-billing-for-github-codespaces/about-billing-for-github-codespaces#monthly-included-storage-and-core-hours-for-personal-accounts), beyond that you must pay. **So be sure to explicitly stop your codespace when you are done by going to this page (https://github.com/codespaces).** You can also chose to fully delete your codespace when you're done exploring tutorial content.

### On your computer

Running tutorials on your computer requires some setup:

We recommend using [`conda-lock`](https://conda.github.io/conda-lock/) to ensure a fully reproducible Python environment

Expand All @@ -29,21 +55,3 @@ conda-lock install conda/conda-lock.yml --name xarray-tutorial
conda activate xarray-tutorial
jupyter lab
```

## Organization

Tutorials are approximately divided into sections with increasing levels of complexity: `Fundamentals`, `Intermediate`, `Advanced`. You'll also find content specific to various `Workshops` hosted over the years, often with accompanying video recordings of instructors going over content and answering questions that come up.

## Jupyter Lab

JupyterLab is a next-generation web-based user interface for Project Jupyter. If you are new to this interface, spend some time reviewing the [documentation and videos](https://jupyterlab.readthedocs.io/en/stable/getting_started/overview.html).

## Jupyter Notebooks

If you haven't used the Jupyter Notebooks before, the quick intro is

1. There are two modes: command and edit
1. From command mode, press Enter to edit a cell (like this markdown cell)
1. From edit mode, press Esc to change to command mode
1. Press shift+enter to execute a cell and move to the next cell.
1. The toolbar has commands for executing, converting, and creating cells.
2 changes: 1 addition & 1 deletion workshops/online-tutorial-series/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Xarray Online Tutorial
# Xarray Online Tutorial 2020

Presented October 6 2020 by:

Expand Down
76 changes: 0 additions & 76 deletions workshops/scipy2024/README.md

This file was deleted.

66 changes: 51 additions & 15 deletions workshops/scipy2024/index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,26 @@
"id": "0",
"metadata": {},
"source": [
"<img src=\"../../images/scipy2024.png\" align=\"right\" width=\"20%\">\n",
"# SciPy 2024\n",
"\n",
"## Welcome to the Xarray SciPy 2024 Tutorial! \n",
"\n",
"# Welcome to the Xarray SciPy 2024 Tutorial! \n",
"<img src=\"https://images.squarespace-cdn.com/content/v1/6596dfc539fa52603ef8b8d4/277ecf67-8dd4-401f-a74c-df3574adf1d1/SCIPY-2024-no-textArtboard%2B1%403x.png?format=1500w\" align=\"right\" width=\"20%\">\n",
"\n",
"**Xarray**: *Friendly, Interactive, and Scalable Scientific Data Analysis*\n",
"\n",
"July 8, 13:30–17:30 (US/Pacific), Room 317\n",
"\n",
"This *4-hour* workshop will explore content from [the Xarray tutorial](https://tutorial.xarray.dev), which contains a comprehensive collection of hands-on tutorial Jupyter Notebooks. We won't cover it all today, but instead will review a curated set of examples that will prepare you for increasingly complex real-world data analysis tasks!\n",
"This *4-hour* workshop will explore content from [the Xarray tutorial](https://tutorial.xarray.dev), which contains a comprehensive collection of hands-on tutorial Jupyter Notebooks. We will review a curated set of examples that will prepare you for increasingly complex real-world data analysis tasks!\n",
"\n",
"## *Draft* Schedule \n",
":::{admonition} Learning Goals\n",
"- Orient yourself to Xarray resources to continue on your Xarray journey!\n",
"- Effectively use Xarray’s multidimensional indexing and computational patterns\n",
"- Understand how Xarray can wrap other array types in the scientific Python ecosystem\n",
"- Learn how to leverage Xarray’s powerful backend and extension capabilities to customize workflows and open a variety of scientific datasets\n",
":::\n",
"\n",
"## Schedule \n",
"\n",
"*Times in US/Pacific Timezone (Tacoma, WA)\n",
"\n",
Expand All @@ -27,24 +35,52 @@
"| Introduction and Setup | 1:30 (10 min) | --- | \n",
"| Xarray Data Model, Backends, Extensions | 1:40 (40 min) | [Quick Introduction to Indexing](../../fundamentals/02.1_indexing_Basic.ipynb) <br> [Boolean Indexing & Masking](../../intermediate/indexing/boolean-masking-indexing.ipynb) | \n",
"| *10 minute Break* \n",
"| Computational Patterns | 2:30 (50 min) | [Computation Patterns](../../intermediate/01-high-level-computation-patterns.ipynb) | \n",
"| Computational Patterns | 2:30 (50 min) | [Advanced Indexing](../../intermediate/indexing/advanced-indexing.ipynb) <br> [Computation Patterns](../../intermediate/01-high-level-computation-patterns.ipynb) <br> | \n",
"| *10 minute Break* | \n",
"| Wrapping other arrays | 3:30 (50 min) | [Xarray and Dask](../../intermediate/xarray_and_dask.ipynb) | \n",
"| Wrapping other arrays | 3:30 (50 min) | [The Xarray Ecosystem](../../intermediate/xarray_ecosystem.ipynb) <br> [Accessors](../../advanced/accessors/01_accessor_examples.ipynb) <br> [Backends](../../advanced/backends/1.Backend_without_Lazy_Loading.ipynb) <br> | \n",
"| *10 minute Break* | \n",
"| Synthesis, Explore your data! | 4:30 (30 min) <br> <br> <br> 5:00 (30 min) | Apply what you've learned, let's work together with your own data |\n",
"| | **End 5:30** | |\n",
"| Synthesis, Explore your data! | 4:30 (50 min) <br> | [Data Tidying](../../intermediate/data_cleaning/05.1_intro.md) <br> |\n",
"| | End 5:30 | |\n",
"\n",
"\n",
"### Tutorial Setup\n",
"\n",
"We recommend using a preconfigured GitHub Codespace for this tutorial. This section describes how to access and manage a GitHub Codespace.\n",
"\n",
":::{note}\n",
"If you prefer to work on your own computer, refer to instructions in the [Getting Started Section](../../overview/get-started.md)\n",
":::\n",
"\n",
"This tutorial is available to run within [Github Codespaces](https://github.com/features/codespaces) - \"a development environment that's hosted in the cloud\" - with the conda environment specification in the [`conda-lock.yml`](../../conda/conda-lock.yml) file.\n",
"\n",
"[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new/xarray-contrib/xarray-tutorial/tree/main?devcontainer_path=.devcontainer%2Fscipy2024%2Fdevcontainer.json)\n",
"\n",
"☝️ Click the button above to go to options window to launch a Github Codespace.\n",
"\n",
"GitHub currently gives every user [120 vCPU-hours per month for free](https://docs.github.com/en/billing/managing-billing-for-github-codespaces/about-billing-for-github-codespaces#monthly-included-storage-and-core-hours-for-personal-accounts), beyond that you must pay. **So be sure to explicitly stop your Codespace when you are done by going to this page (https://github.com/codespaces).**\n",
"\n",
"Once your Codespace is launched, the following happens:\n",
"\n",
"- [Visual Studio Code](https://code.visualstudio.com/) Interface will open up within your browser.\n",
"- A built in terminal will open and it will execute `jupyter lab` automatically.\n",
"- Once you see a url to click within the terminal, simply `cmd + click` the given url.\n",
"- This will open up another tab in your browser, leading to a [Jupyter Lab](https://jupyterlab.readthedocs.io/en/latest/) Interface.\n",
"\n",
"\n",
"\n",
"## Thanks for attending!\n",
"\n",
"Please continue to explore the subfolders in the JupyterLab File Browser for additional tutorial notebooks to run, or read the rendered notebooks at [https://tutorial.xarray.dev](https://tutorial.xarray.dev)"
"Please continue to explore the subfolders in the JupyterLab File Browser for additional tutorial notebooks to run, or read the rendered notebooks at [https://tutorial.xarray.dev](https://tutorial.xarray.dev)\n",
"\n",
"### SciPy 2024 Organized by:\n",
"\n",
"- Scott Henderson (Univ. Washington)\n",
"- Jessica Scheick (Univ. New Hampshire)\n",
"- Negin Sobhani (National Center for Atmospheric Research)\n",
"- Tom Nicholas [C]worthy\n",
"- Max Jones (CarbonPlan)\n",
"- Wietze Suijker (Space Intelligence)"
]
},
{
"cell_type": "markdown",
"id": "1",
"metadata": {},
"source": []
}
],
"metadata": {
Expand Down
2 changes: 1 addition & 1 deletion workshops/thinking-like-xarray/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Thinking like Xarray
# Thinking like Xarray 2022

Presented March 2022 for the [NCAR Python Seminar Series](https://ncar.github.io/esds/posts/2022/Thinking-with-Xarray/) by Deepak Cheerian

Expand Down

0 comments on commit 10f059e

Please sign in to comment.