The answer to your first question is negative, unfortunately. See the official bug report in the Spyder group.
You can use CTRL+I
on the console to call the Inspector from any object, and you can also use it in functions (but not arbitrary objects / variables) from the editor. This is a known inconsistency.
For example, enter the following in the editor window:
import math x = 3.14159 y = math.sin(x)
Now press the word math
and press CTRL-I. Nothing happened. Click on the word sin
and press CTRL-I. The inspector will display the documentation for sin()
.
Now try typing the same three lines into the Python console in Spyder and try again. You will see that pressing CTRL-I after pressing math
will work.
source share