On 2015-12-17 04:09, Steven D'Aprano wrote:
On Thursday 17 December 2015 13:48, Robert wrote:
Hi,
When I use Enthought/Canopy, help(DataFrame) has so much content that it
exceeds the display buffer, i.e. its head is cut off as I go up to see it.
Step 1: report this as a bug to Enthought and/or the Python bug tracker.
help(DataFrame) should automatically choose a pager such as `less` on Linux
or equivalent (`more` I think?) on Windows.
I suspect that he is using the embedded IPython console in the Canopy IDE, so
it's more of an issue that help() knows that it's not in a true terminal so it
doesn't page. If he had been using python at the terminal, help() would have
indeed used the appropriate terminal pager.
Robert, in the IPython console, you can also use a special syntax to get the
content. The IPython console widget does know how to page this:
In [1]: pandas.DataFrame?
http://ipython.readthedocs.org/en/stable/interactive/reference.html#dynamic-object-information
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
--
https://mail.python.org/mailman/listinfo/python-list