Introduction to Sumatra - Automated tracking of scientific computations

I gave a seminar on how I use Sumatra as an "automated lab-notebook" for my computational research. These slides present a tutorial to Sumatra and detail how to get started:


Matplotlib figures with Helvetica labels - helvet vs. tgheros

I recently spent a frustrating amount of time figuring out a good way to have labels and text in the Helvetica font in Matplotlib. Here's what I found:


Python: File operations & Data parsing lecture

In the latest edition of the Introduction to Scientific Programming in Python lecture at my institution, I held a tutorial on "File operations & Data parsing". Below the lecture slides:


Setting up Emacs with Compiz and wmctrl

I recently spent some time to set up GNU Emacs 24.3.1 properly in my Ubuntu 12.04/14.04 environments with the Compiz windows manager. I wanted to

  1. start Emacs in a specified position and size, and
  2. set focus (activate) Emacs in the current workspace


Arrowheads for axis in Matplotlib

This is a short demo showing how to make abstract plots in matplotlib that have arrows pointing in the x and y direction as axis.


Template for code highlighting with minted in LaTeX beamer

Syntax highlighting can be achieved in LaTeX via listings or more recently with minted. The latter package uses Pygments to create beautiful code highlighting and includes fantastic additional features such as line numbering.


Comparing the Euler, Midpoint and Runge-Kutta method

To find an approximate solution to the initial value problem

$$ \begin{align} y'(t) &= f(t,y(t)), \\ y(t_0) &= y_0 \end{align} $$

we compare three different methods: The Euler method, the Midpoint method and Runge-Kutta method. The accuracy of the solutions we obtain through the
different methods depend on the given step size.