Building programs with Python

Building programs with Python
Building programs with Python

Principal speaker

TO BE ADVISED

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: See Campus Maps here

When: 23-25 March . 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).

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

The room is wheelchair / scooter accessible.

Accessible restrooms are available.

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 hackyhour@griffith.edu.au for more information.

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.

Report a Code of Conduct Incident

Surveys

Please be sure to complete these surveys before and after the workshop.

Pre-workshop Survey

Post-workshop Survey

Schedule

Day 1

BeforePre-workshop survey08:30Automating Tasks with the Unix Shell10:30Morning break11:00Automating Tasks with the Unix Shell (Continued)12:00Lunch break13:00Building Programs with Python14:30Afternoon break15:00Building Programs with Python (Continued)16:00Wrap-up16:30END

Day 2

09:00Building Programs with Python (Continued)10:30Morning break11:00Building Programs with Python (Continued)12:00Lunch break13:00Building Programs with Python (Continued)14:30Afternoon break15:00Building Programs with Python (Continued)(Continued)17:00Wrap-up

Day 3

09:00Building Programs with Python (Continued)10:30Morning break11:00Building Programs with Python (Continued)12:00Lunch break13:00Version Control with Git14:30Afternoon break15:00Version Control with Git (Continued)16:00Wrap-up16:30Post-workshop Survey16:40END

Syllabus

The Unix Shell

Files and Directories

History and Tab Completion

Pipes and Redirection

Looping Over Files

Creating and Running Shell Scripts

Finding Things

Reference...

Programming in 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...

Version Control with Git

Creating a Repository

Recording Changes to Files: add, commit, ...

Viewing Changes: status, diff, ...

Ignoring Files

Working on the Web: clone, pull, push, ...

Resolving Conflicts

Open Licenses

Where to Host Work, and Why

Reference...

Setup

To participate in a Software Carpentry workshop, you will need access to the software described below. In addition, you will need an up-to-date web browser.

We maintain a list of common issues that occur during installation as a reference for instructors that may be useful on the Configuration Problems and Solutions wiki page.

The Bash Shell

Bash is a commonly-used shell that gives you the power to do simple tasks more quickly.

Windows

MacOS

Linux

Git

Git is a version control system that lets you track who made changes to what when and has options for easily updating a shared or public version of your code on github.com. You will need a supported web browser.

You will need an account at github.com for parts of the Git lesson. Basic GitHub accounts are free. We encourage you to create a GitHub account if you don't have one already. Please consider what personal information you'd like to reveal. For example, you may want to review these instructions for keeping your email address private provided at GitHub.

Windows

MacOS

Linux

Text Editor

When you're writing code, it's nice to have a text editor that is optimized for writing code, with features like automatic color-coding of key words. The default text editor on macOS and Linux is usually set to Vim, which is not famous for being intuitive. If you accidentally find yourself stuck in it, hit the Esc key, followed by :+Q+! (colon, lower-case 'q', exclamation mark), then hitting Return to return to the shell.

Windows

MacOS

Linux

Python

Python is a popular language for research computing, and great for general-purpose programming as well. Installing all of its research packages individually can be a bit difficult, so we recommend Anaconda, an all-in-one installer.

Regardless of how you choose to install it, please make sure you install Python version 3.x (e.g., 3.6 is fine).

We will teach Python using the Jupyter Notebook, a programming environment that runs in a web browser (Jupyter Notebook will be installed by Anaconda). For this to work you will need a reasonably up-to-date browser. The current versions of the Chrome, Safari and Firefox browsers are all supported (some older browsers, including Internet Explorer version 9 and below, are not).

Windows

MacOS

Linux

Copyright © 2016-2020 Software Carpentry

Contact The Carpentries


Event categories
Event contact details