Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spyder on MacOS. Typing is very laggy

I am using Spyder with Anaconda on macOS. I have already updated Anaconda and Spyder to version 4.2.0 (4.2.1 was not found). The problem is now, that if I am typing in Spyder it takes about one second until the letters appear, which is very annoying. Is there somebody who also has this problem? Or does somebody have a suggestion on what might be the problem?

like image 762
Lukas Niechziol Avatar asked Dec 19 '20 12:12

Lukas Niechziol


People also ask

Why is Spyder so slow when typing?

Spyder lagging Since Spyder uses Qt for its GUI, it is critical to keep the various Qt related packages updated / at the correct version. This may be the reason why installing PyQt5 and PyQtWebEngine helps to remove the lag in Spyder.

How do I know what version of Spyder I have?

Typing the Python statements in my answer into Spyder's Python console will show you which Python interpreter is currently being used by Spyder.


2 Answers

Had the same exact issue with Spyder 5.0.0, on Catalina; editor being very laggy (the console was fine).

Solution worked for me: Disable Kite!

From the top menus: Python > Preferences... > Completion and linting,

Deselect any option that calls Kite:

  • Notify me when Kite can provide missing completions (but is unavailable!)
  • Enable Kite provider

PS: Tried pyqt solutions with no success (this now generates warnings in the terminal every time I open Spyder).

like image 161
Hamfry Avatar answered Nov 26 '22 13:11

Hamfry


(Spyder maintainer here) There are two main causes of this problem:

  1. We had several memory leakages and other serious inefficiencies that were causing a lot of sluggishness in the editor. Most of them are fixed in our 5.1.5 version, released in September 2021. Other improvements will come in 5.2.0, to be released in November 2021.

  2. If you're still experiencing this problem with those versions, it could be because you're in Big Sur. The only way to get a fix for that is by using our mac OS installer

like image 35
Carlos Cordoba Avatar answered Nov 26 '22 11:11

Carlos Cordoba