from IPython.core.display import Image Image(url='http://labrosa.ee.columbia.edu/crucialpython/logo.png', width=600) import numpy as np X = 1 Y = 'c' Z = X+Y A = 3 B = 4 whos locals() %connect_info %qtconsole %debug def square_sum(a,b): c=a*a d=b*b return c+d import ipdb as pdb X = 1 pdb.set_trace() Y = 1 Z= square_sum(X,Y) for i in xrange(20): X=X+ square_sum(X,Y)/(X*X) print X pdb.set_trace() %run -d sample_debug.py : run debuger inside ipython %pdb X = 1 Y = 'c' Z = X+Y A = 1