我看到按下shift+tab一个函数后,在IPython笔记本中显示函数的docstring,但这似乎不适用于我的IPython(没有笔记本).我在Ubuntu上运行IPython 4.0.0.
有什么建议吗?
Mik*_*ler 14
标准(控制台)IPython不支持通过呼叫提示<shift> + <tab>.但是函数之前或之后的问号会显示文档字符串:
In [1]: list.index?
Docstring:
L.index(value, [start, [stop]]) -> integer -- return first index of value.
Raises ValueError if the value is not present.
Type: method_descriptor
Run Code Online (Sandbox Code Playgroud)
作为替代方案,您可以使用qtconsole版本:
ipython qtconsole
Run Code Online (Sandbox Code Playgroud)
然后:
In [1]: list.index(
Run Code Online (Sandbox Code Playgroud)
应该显示一个带有通话提示的方框而不按<shift> + <tab>:
| 归档时间: |
|
| 查看次数: |
8955 次 |
| 最近记录: |