function name + tab does not return docstring in IPython

前端 未结 3 2084
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-02 09:25

In IPython, I am used to write

function(

and then strike a tab, and get the contents of the docstring and a list of the named argume

3条回答
  •  青春惊慌失措
    2021-02-02 10:05

    To display docstrings in Python one can use ? character as a shorthand.

    You can place the ? character before or after (no space allowed) the object you are looking for docs.

    To access the source code simply use ?? instead.

    Source: Help and Documentation in IPython

提交回复
热议问题