You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2019-02-20.23:59:18.045>created_at=<Date2011-12-24.06:23:34.488>labels= ['expert-IDLE', 'type-bug']
title="Add a help() viewer for IDLE's Shell."updated_at=<Date2019-02-20.23:59:18.044>user='https://bugs.python.org/RamchandraApte'
If you call help() a few times on some objects, due to help()'s output IDLE's Shell Window becomes very long and it becomes difficult to scroll through the window.
I suggest a new window should be opened when help() is called in IDLE so that no help output comes in the IDLE Shell Window.
This bug doesn't affect the Python command-line on Linux (and I think Mac OS X) since help() uses the less program to display the help output.
Sorry, new window in "I suggest a new window" should be a new read-only editor window.
It could be implemented through a wrapper around help.
IDLE could have a configuration option whether to use the traditional help() or the new help() which opens a new window.
serwy commented on Dec 28, 2011
serwymannequin
Mannequin
More actions
If you're on Linux, run this as your first command in IDLE:
All help() output for objects will now display outside of IDLE.
The Squeezer extension does something similar for output that is longer than 30 lines.
It should be possible to create a custom pager for the subprocess which communicates with IDLE to display this text. RPCProxy could be used to accomplish this in conjunction with the textView module.
I should like it if a separate window were either automatic or a configuration option for help on modules and classes, which should cover 'long' output. The Windows workaround, which I will never remember, brings up an extraneous cmd.exe window in addition to notepad.
ronadam commented on Dec 31, 2011
ronadammannequin
Mannequin
More actions
What about having idle open a web browser session with pydocs new browse option?
python3 -m pydoc -b
We've added input fields to the pages that take the same input as help() command does. It also links to the online help pages, and you can view the source code of the files directly in the browser. (Sometimes that's the best documentation you can get.)
I would like that to be a help() option, such as help(module, -b) or more verbosely, help(module, browser=True). This would be useful for the regular interactive interpreter as well.
I don't think adding a "browser" arg to help() is a good idea.
The original suggestion of having the help in a separate window and adding a checkbox in the options to (de)activate the feature sounds good to me (it could even allow to select between normal/new window/browser).
serwy commented on May 8, 2012
serwymannequin
Mannequin
More actions
Attached is an initial diff for creating a separate pager window by using a textView widget. The recently applied patch in bpo-964437 allows this window to be non-modal, which can be useful for interactive development.
The diff contains code to allow the pager to work with and without a subprocess. The "pager" and "use_help_window" in PyShell.py provide the core functionality. The "use_help_window" presently is a placeholder for implementing Ezio's suggestion in msg160114.
Does anyone know why "import pydoc" is wrapped in a try/except block? I omitted that in "pager".
RamchandraApte commented on Oct 31, 2012
RamchandraAptemannequin
MannequinAuthor
More actions
Bump.
serwy commented on Oct 31, 2012
serwymannequin
Mannequin
More actions
The attached patch ("bpo-13659.patch") adds a configuration option for selecting the output of help() as being in the shell or in the pager. It is an enhancement against 3.4.
Another possibility involves adding a checkable menu item under "Options" or "Help" to enable/disable the help pager.
Activity
RamchandraApte commentedon Dec 24, 2011
If you call help() a few times on some objects, due to help()'s output IDLE's Shell Window becomes very long and it becomes difficult to scroll through the window.
I suggest a new window should be opened when help() is called in IDLE so that no help output comes in the IDLE Shell Window.
This bug doesn't affect the Python command-line on Linux (and I think Mac OS X) since help() uses the less program to display the help output.
RamchandraApte commentedon Dec 24, 2011
Sorry, new window in "I suggest a new window" should be a new read-only editor window.
It could be implemented through a wrapper around help.
IDLE could have a configuration option whether to use the traditional help() or the new help() which opens a new window.
serwy commentedon Dec 28, 2011
If you're on Linux, run this as your first command in IDLE:
If Windows:
All help() output for objects will now display outside of IDLE.
The Squeezer extension does something similar for output that is longer than 30 lines.
It should be possible to create a custom pager for the subprocess which communicates with IDLE to display this text. RPCProxy could be used to accomplish this in conjunction with the textView module.
terryjreedy commentedon Dec 30, 2011
I should like it if a separate window were either automatic or a configuration option for help on modules and classes, which should cover 'long' output. The Windows workaround, which I will never remember, brings up an extraneous cmd.exe window in addition to notepad.
ronadam commentedon Dec 31, 2011
What about having idle open a web browser session with pydocs new browse option?
python3 -m pydoc -b
We've added input fields to the pages that take the same input as help() command does. It also links to the online help pages, and you can view the source code of the files directly in the browser. (Sometimes that's the best documentation you can get.)
terryjreedy commentedon Dec 31, 2011
I would like that to be a help() option, such as help(module, -b) or more verbosely, help(module, browser=True). This would be useful for the regular interactive interpreter as well.
ezio-melotti commentedon May 6, 2012
I don't think adding a "browser" arg to help() is a good idea.
The original suggestion of having the help in a separate window and adding a checkbox in the options to (de)activate the feature sounds good to me (it could even allow to select between normal/new window/browser).
serwy commentedon May 8, 2012
Attached is an initial diff for creating a separate pager window by using a textView widget. The recently applied patch in bpo-964437 allows this window to be non-modal, which can be useful for interactive development.
The diff contains code to allow the pager to work with and without a subprocess. The "pager" and "use_help_window" in PyShell.py provide the core functionality. The "use_help_window" presently is a placeholder for implementing Ezio's suggestion in msg160114.
Does anyone know why "import pydoc" is wrapped in a try/except block? I omitted that in "pager".
RamchandraApte commentedon Oct 31, 2012
Bump.
serwy commentedon Oct 31, 2012
The attached patch ("bpo-13659.patch") adds a configuration option for selecting the output of help() as being in the shell or in the pager. It is an enhancement against 3.4.
Another possibility involves adding a checkable menu item under "Options" or "Help" to enable/disable the help pager.
Please review.
RamchandraApte commentedon Jan 13, 2013
Patch LGTM.
terryjreedy commentedon Feb 20, 2019
bpo-1529353 added squeezer, making this alternative unnecessary. Once squeezed, output can be opened in a text viewer.