console help __doc__ vs "?"

Answered

Hi,

 

In the console/ipython console the "?" does not display formatted help.

 

>>> numpy.zeros? 
>>> {'text/plain': u"Docstring:\nzeros(shape, dtype=float, order='C')\n\nReturn a new array of given shape and ty.....

instead of a proper help message

>>> print(numpy.zeros.__doc__)
>>> zeros(shape, dtype=float, order='C')
Return a new array of given shape and type, filled with zeros.
Parameters
----------
shape : int or sequence of ints
Shape of the new array, e.g., ``(2, 3)`` or ``2``.

 

...

0

Please sign in to leave a comment.