complete builtin and cython with embededsignature=True
by parsing first line of docstring
docstring for _default_arguments_from_docstring
more robust docstring parsing and docstring parser test

now it can parse cython method like
Minuit.migrad(self, int ncall=10000, resume=True, int nsplit=1)\n
__call__ should not use class docstring
cache regexp and PEP8
couple more PEP8 in test
_default_arguments_from_docstring docstring style
couple typo in docstring
use splitlines instead of StringIO.readline and rebase
tweak history prefix search (up/^p) in qtconsole

moving the cursor around the line could result in
weird inconsistencies in the prefix.

This simplifies the logic by always using the cursor position
to set the history prefix,
and better determine when the history prefix has actually changed.
fix typo in qtconsole history_next

while condition was always checking initial value,
rather than the iterating value.
time(it) magic: format timespans up to hours in human readable form

* Refactor time formatting of timeit into a new function
* Add minutes and hours for long running cells/lines
* Convert time and timeit magic to use the new function

Minutes and hours are float formatted, so 1.5 h is "1 hour, 30 minutes".

Signed-off-by: Jan Schulz <jasc@gmx.net>
time magic: make it usable as cell magic

Convert time to be usable as cell level magic. Also fix some examples,
which didn't have a '%' in front of the magic.

Signed-off-by: Jan Schulz <jasc@gmx.net>
Don't load curses on startup
Defer import of urllib
Defer import of xml.dom.minidom
Defer import of IPython.lib.inputhook
Defer import of json
Remove unused code
Defer import of optparse