Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display function arguments in Spyder?

Tags:

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!

like image 206
Erik van Elten Avatar asked Sep 22 '14 20:09

Erik van Elten


2 Answers

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.

like image 119
Fahad Sarfraz Avatar answered Nov 01 '22 10:11

Fahad Sarfraz


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.

like image 24
Andrzej Gis Avatar answered Nov 01 '22 09:11

Andrzej Gis