Python Workshop

Oklahoma State University

May 11-12, 2020

8:30 am - 12:30 pm

Instructors: Dave Lampert, Phillip Doehle

Helpers: Surya Ayyalasomayajula, Kay Bjornen, Madison Chartier, Nathalia Graf Grachet, Peter Hoyt, Clarke Iakovakis, Hua Lin, Evan Linde, Damith Mahapatabendige, Rajendra Maharjan, Max Prud'homme, Jianan Zhao

CLICK TO REGISTER

LOCATION

We will offer this workshop remotely. We will send you an email with details on how to join the workshop approximately twenty-four hours before the workshop begins.

General Information

This is a Software Carpentry inspired workshop that will teach Python only. Software Carpentry aims to help researchers get their work done in less time and with less pain by teaching them basic research computing skills. This hands-on workshop will cover basic concepts and tools, including program design, version control, data management, and task automation. Participants will be encouraged to help one another and to apply what they have learned to their own research problems.

For more information on what we teach and why, please see our paper "Best Practices for Scientific Computing".

Who: The course is aimed at graduate students and other researchers. You don't need to have any previous knowledge of the tools that will be presented at the workshop.

Where: Online.

When: May 11-12, 2020. Add to your Google Calendar.

Requirements: Participants must bring a laptop with a Mac, Linux, or Windows operating system (not a tablet, Chromebook, etc.) that they have administrative privileges on. They should have a few specific software packages installed (listed below).

Code of Conduct: Everyone who participates in Carpentries activities is required to conform to the Code of Conduct. This document also outlines how to report an incident if needed.

Accessibility: We are committed to making this workshop accessible to everybody. The workshop organizers have checked that:

Materials will be provided in advance of the workshop and large-print handouts are available if needed by notifying the organizers in advance. If we can help making learning easier for you (e.g. sign-language interpreters, lactation facilities) please get in touch (using contact details below) and we will attempt to provide them.

Contact: Please email kay.bjornen@okstate.edu for more information.



Schedule

Day 1

08:30 a.m. Building Programs with Python
09:20 a.m. Break
09:30 a.m. Building Programs with Python
10:20 a.m. Break
10:40 a.m. Building Programs with Python
11:20 a.m. Break
11:30 a.m. Building Programs with Python
12:20 p.m. Wrap-up
12:30 p.m. DONE

Day 2

08:30 a.m. Plotting and Programming in Python
09:20 a.m. Break
09:30 a.m. Plotting and Programming in Python
10:20 a.m. Break
10:40 a.m. Plotting and Programming in Python
11:20 a.m. Break
11:30 a.m. Plotting and Programming in Python
12:20 p.m. Wrap-up
12:30 p.m. DONE

We will use this collaborative document for chatting, taking notes, and sharing URLs and bits of code.


Syllabus

Python

  • Using Libraries
  • Working with Arrays
  • Reading and Plotting Data
  • Creating and Using Functions
  • Loops and Conditionals
  • Defensive Programming
  • Using Python from the Command Line
  • Reference...

Setup

We will use Azure notebooks for this workshop.

  1. Go to the Azure notebooks website.
  2. Azure notebooks require a Microsoft account. If you use OSU's instance of Outlook, you can log in with your OSU email and OKEY password. If you do not have an OSU Microsoft Exchange account, click "Sign In" in the upper-righthand corner and create an account when prompted.
  3. Azure uses notebooks to store code, text, and output. We will send you a link to create a copy of the workshop notebook in your account.