The help() function seems to apply to the PAGER environment variable . So, for me, switch to cat as a pager instead of less :
PAGER=cat python
>>> import os >>> help(os)
You can also change the environment variable from within Python:
>>> import os >>> os.environ['PAGER'] = 'cat' >>> >>> help(os)
But note that this will have an effect if you do this before you use the pager for the first time, because the pager is cached in pydoc.py after the first definition.
Lukas Graf
source share