Resources for Instructors#
Course Website#
The course website (https://mountain-hydrology-research-group.github.io/data-analysis/) is hosted on GitHub Pages as a repository under the Mountain-Hydrology-Research-Group github organization, here. It is organized and formatted as a Jupyter Book.
Getting started#
Log into your github account, or create an account on github (Note: your account will need to be connected to the Mountain-Hydrology-Research-Group github organization)
Go to the course website repository at Mountain-Hydrology-Research-Group/data-analysis
Create your own fork of the repository. (It is good practice to work on a separate fork, your own personal copy, of the repository while you update the website.)
Clone the repository onto the class JupyterHub or to your personal computer. (The advantage of having a clone of the respository on the JupyterHub is to test out the jupyter notebooks for labs in the same environment students will be using.)
Repeat steps 2-4 with the repository containing homework solutions. (This is a private repository accessible only to approved users. It is not connected to the class website.)
Add and Commit changes to your own fork as you work on updating content.
When your own fork is now up to date with your changes, open a pull request to merge the changes from your fork into the repository under the Mountain-Hydrology-Research-Group github organization.
The website is currently published through github pages, so the following step only needs to be taken if the site was ever un-published. I am just including it here for reference. When you are ready to publish the website, click on Settings (with the gear icon) in the menu at the top of the repository page (the Mountain-Hydrology-Research-Group repository, not your own fork). On the left side of the Settings menu, click on Pages. Now you need to tell GitHub to enable “Pages” and which branch you would like to publish. For the dropdown menu under Source make sure that “Deploy from a branch” is selected. Then used the dropdown menu under Branch to select the branch you want to publish (currently this is the “gh-pages” branch), then from the new dropdown menu that appears with the folder icon, make sure that “/ (root)” is selected. This is telling GitHub where the files for your website are located. Then click “Save” and the website should be up in a few minutes.
File organization#
In your cloned respository, in the top level data-analysis/
directory, you can find a subdirectory called book
which contains the website. Under book
course content is organized into:
overview
folder, contains syllabus and project pagesmodules
folder, each module/lab corresponds roughly to one week of the quarter. Themodule#.md
files create the main page for each module with the lab and homework assignment text, while thelab#/
folder corresponding to that modules contains the jupyter notebook files. Thedata/
folder contains any data files for labs or homeworks.resources
folder, jupyter and python documentation and links to other websites of interest to students learning hydrology, statistics, and programmingimages
folder containing any images to embed on the websitethe file
_toc.yml
controls the table of contents displayed on the left side of the website
Updating the website and Jupyter Notebooks#
Working with your fork of the repository that you’ve cloned, you can directly edit any of the markdown (.md) files in any text editor. If you are working on the JupyterHub, the lab jupyter notebooks can be opened and edited directly from the hub. If you are working on your own computer, you will need to launch your own instance of jupyter notebook then open the notebook files to edit. Besides the webpage markdown (.md) files and jupyter notebook (.ipynb) files, there are data files (primarily csv or excel files) for homework and lab activities within the data-analysis/modules/data
directory.
When you’ve made the changes you want, commit and push the modified files to your fork of the respository. Then open a pull request from the upstream repository to pull the changes made in your fork. After merging the pull request, the changes will appear on the class website within a few minutes as the page is re-built from the new files.
Slack#
Create a new Slack workspace#
Go to https://slack.com/create and start by entering your uw.edu email address, then entering the confirmation code sent to you.
For “What’s the name of your company or team?” use the course name and year in a format like uw-waterdata2021 (this will be the name and URL of the Slack workspace)
For “What’s a project your team is working on?” enter “projects” to create a channel with this name (a channel to discuss final projects). More channels can be added later.
You can click “skip” when prompted for “Who do you email most about this project?” (People can be added later to the workspace)
Then finish up by clicking “See your slack channel”
Your slack workspace should now be accessable at uw-waterdata2021.slack.com in a web browser, or as uw-waterdata2021 in the Slack desktop application.
For a 10-week course with ~15 students, the free plan has been sufficient. For larger classes, you might hit the 10K message limit during the quarter, in which case, some early messages will not longer be visible.
Add people to the workspace#
In the slack workspace, click on the workspace name on the left to open a dropdown menu.
Then select Settings & Administration, then under Administration select Manage Members.
Here you can invite people using their email addresses, as well as change their Account Type (such as for adding additional administrators). You can do this with list of email addresses or click the “Get an invite link to share” and send to an email list.
Set default channels to join (such as the channels mentioned below)
More workspace settings are available on the left hand side of this admin webpage.
Optional: add a unique icon for the workspace (useful if you are logged into many workspaces on Desktop app)
Set up your workspace channels#
Add private
#admin
channel for TAs, IT staffAdd public
#it_help
channel for students to get help with Jupyter issuesAdd public
#project
channel for discussion of student projects (will see more activity later in quarter)Optional: limit permissions on the
#general
channel so only admins and specific users can post announcementsOn the
#general
channel, post a new welcome message and create a quick-reference list of links to the various resources that will be used throughout the course (Jupyterhub url, Github Organization url, etc.).Pin this by clicking the three dots in upper right corner of the message and selecting “Pin to channel”.
Add a note that students can always find this list by clicking the Pin icon near top of the channel:
Example:
Welcome to the Data Analysis in Water Sciences - Fall 2022 Slack Workspace We will be using Slack for most day-to-day communications, and for you all to collaborate on labs, homework assignments, and (for graduate students) projects. There is a channel for each weekly module for discussions about each lab and assignment, a channel for initiating discussion around #projects, a #general channel for announcements and general discussions, and an #it_help channel for trying to resolve issues with JupyterHub or other IT issues. Please edit your Slack profile, add a picture, add your preferred name and pronouns as your “Display Name”, and your time zone. Please bookmark these pages for easy access:
Class website: https://mountain-hydrology-research-group.github.io/data-analysis/ (contains the syllabus, labs, homework assignments, links to other resources)
UW Canvas: https://canvas.uw.edu/ (for turning in assignments, grades, extra reading resources)
JupyterHub: https://rttl.axdd.s.uw.edu/2022-autumn-cee-465-a/ (the computing environment we’ll be using for labs, homework, projects, instructions for getting started are here)
Slack Workspace: uw-waterdata2020.slack.com (for communication, questions, collaboration)
Thank you to David Shean for providing course organization ideas and help from this guide.
Slack setup steps are modified from these instructions