%pdb
def pick_and_take():
picked = numpy.random.randint(0, 1000)
raise NotImplementedError()
pick_and_take()
Automatic pdb calling has been turned ON
--------------------------------------------------------------------------- NameError Traceback (most recent call last) <ipython-input-1-0f6b26649b2e> in <module>() 5 raise NotImplementedError() 6 ----> 7 pick_and_take() <ipython-input-1-0f6b26649b2e> in pick_and_take() 2 3 def pick_and_take(): ----> 4 picked = numpy.random.randint(0, 1000) 5 raise NotImplementedError() 6 NameError: name 'numpy' is not defined
> <ipython-input-1-0f6b26649b2e>(4)pick_and_take() 2 3 def pick_and_take(): ----> 4 picked = numpy.random.randint(0, 1000) 5 raise NotImplementedError() 6 ipdb> d *** Newest frame ipdb> 1 1 ipdb> 1 1 ipdb> 2 2 ipdb> 100 100 ipdb> 100 ipdb> 0 0 ipdb> exit
x = range(1000)
y = [i ** 2 for i in x]
plt.plot(x,y)
plt.show();
%config InlineBackend.figure_format = 'retina'
plt.plot(x,y)
plt.show();