Update ipython.py

pydata book chapter 3