Delay the dependency to IPython only if really used.
(On OS X 10.4.11 with Fink, version of IPython is 0.10-1 and doesn't define core.display module)
according to doc, grads must return a tuple
fix typo in doc