NumPy and IPython, SciPy2013 Tutorial, Part 2 of 2

Summary

Description

This tutorial is a hands-on introduction to the two most basic building-blocks of the scientific Python stack: the enhanced interactive interpreter IPython and the fast numerical container Numpy. Amongst other things you will learn how to structure an interactive workflow for scientific computing and how to create and manipulate numerical data efficiently. You should have some basic familiarity with Python (variables, loops, functions) and basic command-line usage (executing commands, using history).

Outline

Ipython (1 hour)

Using the IPython notebook Help system, magic functions, aliases and history Numpy (3 hours)

Basic arrays, dtypes and numerical operations Indexing, slicing, reshaping and broadcasting Copies, views and fancy indexing The tutorial will feature short bursts of small exercises every 5-10 minutes.

Required Packages

An install of Anaconda should be enough

Numpy (Version 1.6 or higher) Ipython (Version 0.13 or higher) Matplotlib (Version 1.2.1 or higher) Documentation

I have converted a large part of the Numpy chaper from the Python Scientific Lecture Notes to IPython notebook format using the sphinx2ipynb converter from the nbconvert project. All materials are collected in my scipy2013-tutorial-numpy-ipython Gitub repository at https://github.com/esc/scipy2013-tutorial-numpy-ipython or http://git.io/bocNDg.