3

Lets say I type the following in Spyder-IDE:

min(

Spyder will then automatically open the arguments list of the function min and give me:

Arguments
min(iterable[, key=func])

I find this very helpful but Spyder closes this list after 1.5sec. I would like to have this still open after 1.5sec. In fact it would be perfect if this list remained open while I type the arguments since it helps me to see what I need to specify for a correct function call. As far as I can remember, other IDEs such as Eclipse or QtCreator support this. Is this also possible with Spyder?

In the preferences section under Editor I found:

Highlight occurences after 1500ms

Changing this value has however no effect and it seems that this is not the value which I want to change.

Ohumeronen
  • 1,769
  • 2
  • 14
  • 28

1 Answers1

2

If you're okay with having a "side" window, what you can do is go to Tools > Preferences > Object Inspector, and check off the Editor, Python Console, and IPython Console boxes, then click Apply/OK. Then navigate to View > Panes and click Object Inspector. It should pop up as another window next to your main text window. It's not exactly inline, but it will give you the same info (plus more).

I'm not sure if you have to check off all of "Editor, Python Console, and IPython Console", but it didn't work for me when I just selected Editor for some reason...

I'm on Spyder 2.7, btw.

HTH!

Matt Messersmith
  • 12,939
  • 6
  • 51
  • 52
  • Thank you, this is helpful. I will leave this question open in case someone has a better solution. The object inspector is good and I can shrink its size but it would be perfect to have a solution without an extra window. But if there is no better solution I will use your suggestion. Thanks! – Ohumeronen Jul 07 '16 at 12:50
  • 1
    Looked for another 20 minutes now, I can't figure out how to inline it. I doubt the capability exists, and if it does, it's really unintuitive and hard to find. I suggest submitting an issue if you really want/need the capability (Help > Report issue...) – Matt Messersmith Jul 07 '16 at 13:05
  • Ok there seem to be no better solutions. The credit goes to you mwm314 :-) – Ohumeronen Jul 07 '16 at 13:56
  • I find the term "check off" a bit confusing: in my case I had to switch the the boxes to ticked. I was going to edit your answer to clarify but thought I should check with you first. Anyway for me ticked boxes work, unticked boxes don't work. – Julien Jul 08 '16 at 01:44