In "ipython", we use some_obj??
to get documentation, which uses "less" to show the docs. How can we get the document out of "less", into a text editor? The content is fed from stdin, so pressing "v" gives the error: "can not edit standard input"
Asked
Active
Viewed 312 times
1

fedorqui
- 275,237
- 103
- 548
- 598

Andrew_1510
- 12,258
- 9
- 51
- 52
1 Answers
1
some_obj??
is equivalent the built-in help
function. This is a wrapper around pydoc.help.
import pydoc
doc = pydoc.text.document(some_obj)
print doc
You may save the documentation to a file. Then open in a text editor.

lollo
- 2,289
- 16
- 20