4

I am using Spyder 4.0.1, and when I code windows with documentation/completions like the one below pop-up constantly. It's very distracting. However they do remain very useful when I need them!

So how can I configure spyder so that they ONLY appear when I press a macro/hotkey combination (instead of popping up unsolicited all the time)?

By the way I deactivated these windows by going to:

  • "preferences/completion and linting/completion" and unticking:
    • Show completion details
    • Show completions on the fly
  • "preferences/completion and linting/advanced" and unticking:
    • enable Kite
    • enable fallback completions

enter image description here

EDIT

As explained by Carlos Cordoba, activating "enable fallback completions" on its own enabled did not bring any pop-up windows unless I pressed Ctrl + Space. Perfect !

However "enable Kite" on its own makes the following windows pop-up as soon as I type a function name:

enter image description here

Maybe I did something bad in my setup?

Jeffery
  • 629
  • 1
  • 7
  • 17

1 Answers1

7

(Spyder maintainer here) You don't need to deactive these options:

  • Enable Kite
  • Enable fallback completions

to get what you want. That's because by deactivating Show completions on the fly, completions will only be shown when pressing Tab or Ctrl + Space. Note: Several errors with fallback completions, and completions in general, will be fixed in our 4.1.0 version, to be released later in March 2020.

However, you need to deactivate the option called Enable hover hints (present in Preferences > Completion and linting > Introspection) to disable the extra information bubbles displayed in your first screenshot above. Unfortunately, there's no shortcut to show them at will because they depend on the mouse position.

Besides, to hide the bubbles shown after typing an open parenthesis (as displayed in your second screenshot), you need to deactivate the option called Show calltips (also present in Preferences > Completion and linting > Introspection).

Carlos Cordoba
  • 33,273
  • 10
  • 95
  • 124
  • Thank you for the pointers ! Hmmm... you were right about "Enable fallback completions" but "Enable Kite" still makes windows pop-up spontaneously; maybe a bug that would be fixed in the next update? – Jeffery Mar 09 '20 at 17:51
  • What windows are shown when "Enable Kite" is activated? Could you update your question above with them? Thanks! – Carlos Cordoba Mar 09 '20 at 19:50
  • I just updated the question with what you asked for. Thanks again! – Jeffery Mar 10 '20 at 15:45
  • Thanks! But do you have Kite installed? – Carlos Cordoba Mar 10 '20 at 15:47
  • I think so: it says "Kite: ready" on the toolbar at the bottom of the screen. – Jeffery Mar 10 '20 at 15:53
  • @Jeffery, I updated my answer to respond to your latest addition. – Carlos Cordoba Mar 11 '20 at 02:49
  • Thank you very much for your time ! Unfortunately Kite still shows me those windows after disabling "show calltips" ... I guess I won't use Kite for the moment. – Jeffery Mar 12 '20 at 22:46
  • What is the difference between `tab` and `cntr+space`? When I start typing an object name, they both seem to behave the same way. When I type a number and hit `tab`, I get 3 spaces. When I type a number and hit `cntrl+space`, I get an enormous list of keywords and text. I got tired of not being able to hit `enter` after typing a number (because Kite would always insert something), which is how I ended up on this thread. I still want the helpful suggestions, just not all the unhelpful ones (much more like Rstudio). – filups21 Mar 13 '20 at 20:35
  • It also seems like in 4.2.2 the option "Show calltips" can be disabled, but the tips are still shown. – kdb Mar 24 '21 at 11:52