Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make the spyder Ipython Console display function arguments tooltips automatically?

I am using the Spyder which comes inside the Anaconda3 IDE. I found the Ipython Console here is very helpful in the sense that when I type in a function, the arguments and default values will come up automatically. When I used to use Jupyter notebook, there is no such functionality.

What I mean is like this:

enter image description here

When you just typed the function name and a left bracket, the Arguments help window just pop up.

However, my problem is that, sometimes, in the middle of this function completion, in this example, I finished typing bottom=a, but I forgot what should be passed to width, so let's say I pressed Alt+Tab in windows system to check it out in a PDF. Then I press Alt+Tab to switch back to Ipython console, but now the Arguments help window just dispeared.

My question is is there any shortcuts to make the it appear again? Typically, I just have to clear all my arguments, and go back to type the left bracket another time to make it appear to help me specify the arguments, but this is unkind.

enter image description here

like image 559
StayFoolish Avatar asked Jun 06 '26 10:06

StayFoolish


1 Answers

Press shift+tab to get the argument window back.
Press ctrl+space to get the function window which appears after a dot (e.g. after "plt.").

like image 175
Ferro Avatar answered Jun 08 '26 14:06

Ferro



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!