IPython Notebook Tab-Complete - 显示文档字符串 [英] IPython Notebook Tab-Complete -- Show Docstring
问题描述
我刚刚升级到IPython 2.0.0并且tab-complete的行为似乎已经发生了变化。 (使用pyreadline 2.0,根据这个问题可能很重要)。
I just upgraded to IPython 2.0.0 and the behavior of tab-complete seems to have changed for the worse. (Using pyreadline 2.0, which according to this question might matter).
以前,如果我在 function_name(
)之后点击TAB,IPython会显示该函数的文档字符串。
Formerly, if I hit TAB after function_name(
, IPython would show the docstring for that function.
现在,我只看到一个下拉列表,其中包含以下内容,包括:
Now, I just see a dropdown list of what I guess is everything in the namespace, including:
- 错误类型
- 目录中其他笔记本的名称
- IPython魔术功能
- 其他功能我是已定义
- 等。
- Error types
- names of other notebooks in the directory
- IPython magic functions
- Other functions I've defined
- etc.
旧的行为非常有用 - 如何恢复它(没有恢复到早期的IPython版本)?
The old behavior was super helpful -- how can I restore it (short of reverting to an earlier IPython version)?
推荐答案
显然它现在是Shift-Tab。感谢@Thomas K。
Apparently it's now Shift-Tab. Thanks @Thomas K.
这篇关于IPython Notebook Tab-Complete - 显示文档字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!