IPython Notebook Tab-Complete — Show Docstring

社会主义新天地 提交于 2019-12-19 05:12:42

问题


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).

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:

  • Error types
  • names of other notebooks in the directory
  • IPython magic functions
  • Other functions I've defined
  • etc.

The old behavior was super helpful -- how can I restore it (short of reverting to an earlier IPython version)?


回答1:


Apparently it's now Shift-Tab. Thanks @Thomas K.



来源:https://stackoverflow.com/questions/23687011/ipython-notebook-tab-complete-show-docstring

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!