function name + tab does not return docstring in IPython

穿精又带淫゛_ 提交于 2019-12-03 06:44: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 arguments. However, this stopped working since I installed IPython 2.0. Is there an explanation or a know fix?


回答1:


Oh, the shortcut is now shift+tab.




回答2:


Shift-tab only works when you place the edit cursor inside or after the object. Not when it's at the start of the object. This gotcha is not documented anywhere...!

I filed jupyter issue Shift-Tab completion doesn't work when edit cursor is at the start of the object #1902



来源:https://stackoverflow.com/questions/22850566/function-name-tab-does-not-return-docstring-in-ipython

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