Talk Debugging and Optimization

Presented by Gaƫl Varoquaux in Advanced tutorial track 2011 on 2011/08/25 from 11:00 to 12:30

This tutorial will explore technique to understand better code: debugging, and code optimization.

Target audience Engineers and scientists using Python for scientific and numerical computing.
Prerequisites Being able to code scripts and function in Python. Some knowledge of numpy.
Software requirements IPython, kernprof, nosetests, pyflakes, gdb will be required for debugging C code


  • Debugging and inspecting in IPython
  • Using pdb
  • Debugging C extension code and C-level segfaults with gdb


  • The Python profiler in IPython
  • Line-by-line profiling


  • Simple tricks
  • When not to optimize
tagged by
no related entity