Albert Einstein Science Park, Potsdam, Germany

Apr 21, 2020

09:00 am - 18:00 pm

Instructors: Bezaye Tesfaye, Maximilian Dolling

Helpers: Nils Brinkmann, Sebastian Heimann, Stefan Lüdtke

General Information

Together with the advancement of new tools and techniques, and the availability of large datasets in different research domains, a solid understanding of common scripting languages and version control systems is becoming more and more important for many researchers. Having the knowledge and skills on how to use tools and techniques to analyze data efficiently, to preserve research output and to collaborate with peers benefit every research domain. So its important to close the gap between researchers and the know-how for new tools and techniques. Software Carpentry aims to provide this support. It is an interactive workshop including sessions from concepts to practice on topics that can be used in many research domain. The sessions are organized in a friendly environment, where people can learn from each other and share experience. Participants also get support throughout the whole sessions.

Who: The workshop targets audience from graduate students to advanced researchers, and doesn't require previous knowledge of topics that will be covered.

When: Apr 21, 2020. Add to your Google Calendar.

Requirements: The workshop will be held virtually using zoom and participants should prepare the following items before the workshop: (1) prepare a laptop with a Mac, Linux, or Windows operating system (not a tablet, Chromebook, etc.), and a headset if possible, (2) install the zoom extension to a browser of choice or install zoom client, and (3) install required software packages for the workshop (listed below).

Contact: If you have any question on the workshop, please contact us through swc-workshop-org@gfz-potsdam.de


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.


Collaborative Notes

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


Surveys

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

Pre-workshop Survey

Post-workshop Survey


Schedule

09:00 Welcome and introduction
09:05 Icebreaker
09:20 Setup
09:30 Python fundamentals and data analysis
11:00 Coffee Break
11:30 Data visualization and loops using Python
13:00 Lunch Break
14:00 Python lists and working with multiple files
15:30 Coffee Break
16:00 Conditionals and functions in Python
17:30 Wrap-up

Syllabus

Programming in Python

  • Using Libraries
  • Working with Arrays
  • Reading and Plotting Data
  • Creating and Using Functions
  • Loops and Conditionals
  • 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.

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.

nano is a basic editor and the default that instructors use in the workshop. It is installed along with Git.

Others editors that you can use are Notepad++ or Sublime Text. Be aware that you must add its installation directory to your system path. Please ask your instructor to help you do this.

nano is a basic editor and the default that instructors use in the workshop. See the Git installation video tutorial for an example on how to open nano. It should be pre-installed.

Others editors that you can use are BBEdit or Sublime Text.

nano is a basic editor and the default that instructors use in the workshop. It should be pre-installed.

Others editors that you can use are Gedit, Kate or Sublime Text.

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 Spyder IDEk, a programming environment that makes it easier to write Python code (Spyder will be installed by Anaconda).

Video Tutorial
  1. Open https://www.anaconda.com/distribution/#download-section with your web browser.
  2. Download the Anaconda for Windows installer with Python 3. (If you are not sure which version to choose, you probably want the 64-bit Graphical Installer Anaconda3-...-Windows-x86_64.exe)
  3. Install Python 3 by running the Anaconda Installer, using all of the defaults for installation except make sure to check Add Anaconda to my PATH environment variable.
  1. Open https://www.anaconda.com/distribution/#download-section with your web browser.
  2. Download the Anaconda Installer with Python 3 for Linux.
    (The installation requires using the shell. If you aren't comfortable doing the installation yourself stop here and request help at the workshop.)
  3. Open a terminal window and navigate to the directory where the executable is downloaded (e.g., `cd ~/Downloads`).
  4. Type
    bash Anaconda3-
    and then press Tab to autocomplete the full file name. The name of file you just downloaded should appear.
  5. Press Enter. You will follow the text-only prompts. To move through the text, press Spacebar. Type yes and press enter to approve the license. Press Enter to approve the default location for the files. Type yes and press Enter to prepend Anaconda to your PATH (this makes the Anaconda distribution the default Python).
  6. Close the terminal window.