Scientific Python

ARCHER, the UK's national supercomputing service, offers training in software development and high-performance computing to scientists and researchers across the UK. As part of our training service we will be running a 2 day 'Scientific Python' training session.

Details

This course is aimed at programmers with basic Python knowledge seeking to learn how to use Python for scientific computing. We will introduce Python's fundamental scientific libraries NumPy, SciPy and Matplotlib. We will also introduce how to interface Python with Fortran and C codes.

Outline

Day 1:

  • AM
  • Introduction and motivation for Scientific Python
  • Brief recap of Python basics
  • Introduction to NumPy
  • PM
  • Introduction to Matplotlib

Day 2:

  • AM
  • Introdution to SciPy
  • Interfacing Python with C and Fortran
  • PM
  • Study time for completing exercises

This course is free to all academics.

Structure

The course will be delivered over two days in person. The course will interleave practical exercises with short lectures and discussions.

Pre-requisites

To attend, you must have some experience of writing code and/or scripts and be familiar with programming concepts including conditionals, loops, arrays and functions. You should also have some basic knowledge of the Python language. For an introduction to Python, please see Code Academy's Python tutorial: https://www.codecademy.com/tracks/python

You should also be comfortable with using the bash shell. For an introduction to the shell, please see, for example Software Carpentry's lessons on Unix Shell: http://software-carpentry.org/v5/novice/shell/

The course will be hands-on, and you are strongly encouraged to bring your own laptop (you may be asked to install some software before you arrive). Alternatively, PCs will provided for use.

Timetable

Day 1

  • 09:30 - Registration
  • 10:00 - L01 : Introduction
  • 11:00 - Break (tea/coffee)
  • 11:30 - L02 : NumPy
  • 13:00 - Lunch (not provided)
  • 14:00 - L03 : Matplotlib
  • 15:30 - Break (tea/coffee)
  • 16:00 - Exercises
  • 17:30 - end

Day 2

  • 10:00 - L04 : SciPy
  • 11:00 - Break (tea/coffee)
  • 11:30 - L05 : f2py : Fortran/C Interface
  • 13:00 - Lunch (not provided)
  • 14:00 - Exercises
  • 15:30 - Break (tea/coffee)
  • 16:00 - Exercises
  • 17:00 - end

Course Materials

Links to the Slides and exercise material for this course will be available here.

Location

The course will be held in Imperial College London.

Registration

Please use the registration page to register for ARCHER courses.

Questions?

If you have any questions please contact the ARCHER Helpdesk.