Skip to content

Commit 13e65ae

Browse files
committed
Finish TODOs in module 1 exercise
1 parent ebf7979 commit 13e65ae

File tree

1 file changed

+47
-18
lines changed

1 file changed

+47
-18
lines changed

modules/01-collaborating-in-jupyterhub/exercise.md

Lines changed: 47 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ title: "💪 Exercise"
1111
* Leave "Resource Allocation" as default (1.9GB RAM).
1212
1. **Click "Start"**!
1313
* It may take a moment for the server to start.
14-
When it's done, **place a green sticky on the corner of your laptop screen** so
15-
instructors know you're ready!
16-
* If startup takes longer than a couple of minutes, put up a red sticky and we'll
14+
When it's done, **place a 🟩 green sticky on the corner of your laptop screen**
15+
so instructors know you're ready!
16+
* If startup takes longer than a couple of minutes, put up a **🟥 red sticky** and we'll
1717
take a look!
1818

1919

@@ -31,39 +31,56 @@ title: "💪 Exercise"
3131
repo should be public. **Set the "Repository name" to
3232
`workshop-csdms2025-exercises`** -- this will make it easier for us to find it!
3333

34-
1. **In JupyterHub**, clone the new repository you just created from the template.
35-
We'll be working here from now on! **Run the command below, replacing `MY-USERNAME`
36-
with your GitHub account username**.
34+
1. **In JupyterHub, clone the new repository you just created** from the template.
35+
We'll be working here from now on!
36+
1. Create a new tab in JupyterHub with the ➕ icon.
37+
1. Launch a terminal.
38+
1. In the terminal, **Run the command below, replacing `MY-USERNAME`
39+
with your GitHub account username**.
3740

3841
```bash
3942
git clone https://github.com/MY-USERNAME/workshop-csdms2025-exercises
4043
```
4144

4245

43-
## Step 2: Explore the example data
46+
## Step 2: Explore some example data
4447

4548
1. Navigate to the newly cloned repository in the JupyterLab file browser on the left
4649
panel.
4750
If the left panel isn't open, click the topmost icon in the far left column.
4851
1. Navigate to the `exercises/module-1` directory.
4952
1. Double-click the GeoJSON file `seec.json` to view it with the JupyterLab viewer.
53+
1. Right-click the same GeoJSON file `seec.json`, and select "JSON" to view the raw
54+
contents of the file in a structured way.
5055
56+
JupyterLab is about much more than Notebooks!
57+
It's built to be an interactive computational tool that helps us think about problems.
58+
As the Jupyter community grows, so do JupyterLab's capabilities, and it becomes a more
59+
complete solution over time.
60+
We'll explore some of the latest examples of this progress soon.
5161

52-
## Step 3: Open our example Notebook and create some new data (WIP)
62+
63+
## Step 3: Open our example Notebook
5364

5465
1. Open `example-1.ipynb` by double-clicking it in the file browser in the left panel.
5566
1. This notebook is pre-populated with some code.
56-
**Run all the cells** by pressing `SHIFT+ENTER` repeatedly until you reach the end.
57-
1. Add a new cell which adds more data into the GeoDataFrame (_TODO_: Prompt and empty
58-
space in notebook).
59-
Start with the address of a location that is meaningful to you:
67+
**Run most of the cells** by pressing `SHIFT+ENTER` repeatedly until you reach the
68+
challenge cells at the end.
69+
70+
71+
## Step 4: Create some new data
72+
73+
1. Fill in the final cells of the Notebook to add more data to the GeoDataFrame.
74+
Start with a location that is meaningful to you:
6075
Your favorite coffee shop?
6176
The shelter where you adopted your pet?
6277
The town where you grew up?
63-
1. Add another new cell which saves the GeoDataFrame with a new filename.
78+
1. Run the final cells.
79+
6480

81+
## Step 5: Push our work to GitHub
6582

66-
## Step 4: Set up GitHub authentication in JupyterHub (WIP)
83+
### Step 5a: Set up authentication
6784

6885
In order to push changes from the JupyterHub, you need credentials.
6986
Since the JupyterHub is a shared cloud service, saving credentials there can be
@@ -72,14 +89,26 @@ Therefore, we use a special tool,
7289
[`gh-scoped-creds`](https://github.com/jupyterhub/gh-scoped-creds),
7390
to limit this risk.
7491

75-
1. Grant access to the app (_TODO: Details_)
76-
1. Configure your exercises repository to work with `gh-scoped-creds` (_TODO: Details_)
92+
1. In the terminal, run the command:
93+
94+
```bash
95+
gh-scoped-creds
96+
```
97+
98+
1. This will output a URL and an authorization code.
99+
Visit the URL and input the code.
100+
1. This will output another URL.
101+
* Visit that URL.
102+
* Click the "Configure" button.
103+
* Select your username from the list, and continue.
104+
* Select "Only select repositories", and then select `workshop-csdms2025-exercises`.
105+
* Click "Install".
77106

78107
This configuration is valid for 8 hours.
79-
If you need to refresh your access, please re-do the final step in the list above.
108+
If you need to refresh your access later, please re-do these steps.
80109

81110

82-
## Step 5: Push to GitHub (WIP)
111+
### Step 5b: Push!
83112

84113
1. `git add .`
85114
1. `git commit --message="Add new data to GeoJSON"`

0 commit comments

Comments
 (0)