How to display function arguments in Spyder?

2019-02-16 12:47发布

I'm using Spyder 2.2.5 with Python 2.7 and I want the editor to display the arguments of the function I'm calling after I type the first parenthesis. I know it's possible, because I can see it in the video-tutorials I'm using. I've tried (at least I think so..) all menu-items. Getting crazy here, please help!

5条回答
ら.Afraid
2楼-- · 2019-02-16 13:23

Go to View > Window layouts > Spyder Default Layout. This resets the Spyder IDE to the defaults, and the object inspector will function again (worked for me).

查看更多
放荡不羁爱自由
3楼-- · 2019-02-16 13:38

often would need to restart Spyder to have the inline help

查看更多
老娘就宠你
4楼-- · 2019-02-16 13:43

You can activate the object inspector to display the documention of the function itself by enabling automatic connections for your editor or console. It will then show you the function parameters as you press the left parenthesis.

To enable it go to Tools > Preferences > Object Inspector . Under Help-> Automatic connections check your desired programming environment and enable plug-in.

查看更多
虎瘦雄心在
5楼-- · 2019-02-16 13:45

For Spyder 3:

Tools > Preferences > Help > Automatic Connections and then tick all the workspaces you want it to show functions' arguments.

查看更多
爱情/是我丢掉的垃圾
6楼-- · 2019-02-16 13:47

I have a similar problem. The arguments pop-up shows up only until I start typing, so I have a problem if I forget what the latter arguments are. A workaround is to move the cursor on the function and press Ctrl + i. It shows the function documentation in help window, including its definition.

查看更多
登录 后发表回答