New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor very slow on Mac Yosemite and El Capitan #2724
Comments
This is probably an issue with Qt, which is about to be updated in Anaconda. I'll let you know when that's the case. |
I'm also eagerly awaiting this update. I love Spyder, it's really radically improved my python programming experience and makes me happier and more productive, but the slowdowns are frustrating. Thanks for all your work on this, Carlos! |
Qt was updated in Anaconda a couple of weeks ago. Please let us know if that fixes this problem for you :-) |
Unfortunately not. I was hoping it would as well. I use the latest anaconda (2.4.0), on El Capitan (10.11.1). Qt version (4.8.7). Please let me know how I can help diagnose this. |
Same problem here. Using latest anaconda and Yosemite On Mon, 16 Nov 2015 at 4:49 p.m., nbara notifications@github.com wrote:
|
As an experiment, try disabling all code introspection features in Preferences > Editor : Code Introspection / Analysis. I turned these off due to an issue #1659 with Jedi and Spyder behaves much better overall. |
Just tried this. No changes for me. On 16 November 2015 at 22:24, chrisjcameron notifications@github.com
|
I just installed anaconda yesterday and am experiencing the same problem. |
Me as well |
same here |
Here too |
Same here |
Same here. Just checking out Spyder - new to Python. The editor is so slow it is unusable. I'll have to look for another environment and hope to come back and try Spyder again at a later date. Macbook Pro Mid 2014, El Capitan |
Spyder runs ok for me on a 2010 MBP with Yosemite (OS X 10.10), so this problem is not universal. I imagine it would be helpful if we were able to provide more information about how it is slow and what features, dependencies or hardware configurations are associated with slow performance. To check:
To report:
Spyder installed via the standard Anaconda distribution is working for me with the following installed: Version and main components
Optional dependencies
|
@chrisjcameron is right, on my tests I haven't found the kind of slowness you're describing (else I would've solved it already :-) Another important thing to let us know is if you're using Anaconda, our DMG installer or another method of installation. |
I normally use the Anaconda Spyder which is the one that is extremely laggy for me at the moment. I tried the DMG installer today and didn't experience the slowness. |
@pmjandreen When you use the help and open a bug report, you get a list of installed packages. Are there any differences in version number or packages installed on these reports when you compare the output for the Anaconda and Spyder versions? Can you verify that the editor settings are exactly the same between the two versions and test each version with only one new document opened? |
A comment on #2817 suggests the slowness may be related to using an external monitor. Is this case it seems like people who are not using an external monitor might experience slowness in the editor. For those of you with the issue, are you able to test with an external monitor? If you are on a dual GPU MacBook Pro, can you note which GPU is active when you have the issue? |
Update: Typing long gibberish lines at high speeds results in a backlog up to approximately a dozen characters in the Editor. These unwritten characters are written (one at a time) after I stop typing. There is no noticeable delay when pasting the same lines into the editor. Rapid typing in the Spyder iPython console does not produce a noticeable backlog of unwritten characters. This behavior seemed to occur with all screen/GPU combinations on my 2010 MBP. Disabling Editor features did not have an impact on the character backlog. It seems possible that a very fast typist would notice the delays I am observing. Is there some code specific to the Editor that preprocesses text (or keypress) input as it is entered? |
I experience the problem on an external monitor and without. I experience it using the Anaconda launcher, and I just tried installing from DMG and see the same problem. I do not consider myself an extremely fast typist, though I am a touch typist and a have been programming for decades. To me the lag is VERY noticeable - unusable to me. When I was testing tonight I could have sworn that I did not see the delay at first, then it started and wouldn't leave. The only thing I can think of that might have changed is the working directory. I don't know the default directory so I couldn't change back for test purposes. I only have one file open. There is no delay in the shell window, just the editor window. There seems to be some linkage between the Anaconda and DMG installs because when I bring up the DMG version, it knows my file history from the Anaconda version. Just FYI. I'm pretty new to Python so I'll need help if I am to be guinea pig (which I'm very willing to be, I just need specific instructions). I don't experience this problem when using IEP. But Spyder looks much more up to date WRT to component versions and doesn't exhibit a couple problems I've seen in IEP, so I'm anxious to try it.
|
I experience similarly to @jandyman that the problem shows up gradually and becomes worse and worse. That's why I might not have experienced it with the dmg version. I only used it for a short while to test (and might have come to the wrong conclusion). My colleague sitting next to me experience the same lagging for Spyder on mac by the way (using Anaconda). @chrisjcameron these are the differences between my Anaconda Spyder and the dmg Spyder: Anaconda Spyder, dmg Spyder The editor settings are identical for the two versions. |
I experience same issue from Spyder via anaconda in El Capitan. |
@ccordoba12: Are you able to replicate the experience of a small delay for rapidly typed characters in the editor? When I type characters very quickly I can build up a queue of a dozen or so characters that appear one at a time after I stop typing. The delay is brief but noticeable. In the iPython console, the same rapid typing produces the characters immediately and with no discernible backlog. Do you have a sense of how these two UI fields handle input text differently? It may be something that scales with the number of characters or lines in the file. |
Yep I was able to do it, but only using the Anaconda packages, not when using our DMG. That implies that this is a problem with Qt/PyQt and not with Spyder itself (given that Qt versions for both packages are different). However, the delay shows up only if you type very fast. I didn't notice any other noticeable delay, as others in this thread mention. My guess is that the problem depends on Qt and a weird interaction with the operating system or the graphics card. So this seems to be out of our hands, sorry. |
So Spyder will always be this way from now on? |
I tried the anaconda version and the dmg versions (both beta and standard) and after a few minutes it becomes so slow it's basically unusable. I have tried using the PyCharm IDE instead, I do not encounter any slowdown issues here. |
@massimocaccia , sorry but I'm not being able to reproduce this problem. Without that, how could I fix it? Besides it seems to affect few people (if this were a widespread problem I'd be hearing a lot more about it :-). @pete86, Pycharm uses a different graphical toolkit so I'm not surprised is working just fine. To all affected people: please help us to solve this issue by debugging it. One option could be to install Homebrew or Macports, install or compile Qt with any of them, and see if that solves the problem. If not, you could change compiling options and try again. Given that none of the core developers is able to reproduce this bug, reassuring us that this is problem for you is of no value in this case. |
I have two nearly identical systems, both Anaconda py35, editing some of the same files. One slows down several tenths of a second per keystroke after being open for a while (usually after I've run some code, but haven't confirmed that 100%). The other is just fine. The main difference between the two systems is that the laggy one is on El Capitan, and the fine one is Yosemite. (Also the El Capitan machine has some homebrew packages and the Yosemite one has some MacPorts, but that shouldn't matter because I'm using Anaconda for everything Python on both.) |
This week we (at Continuum) updated our |
So you need to run
to get those updates. |
@ccordoba12 Are you saying |
And the commands I posted in my previous comment |
@ccordoba12 Sorry just saw your second comment. Should I install spyder 3.0.0b2 or 2.0.0 before updating qt and pyqt? |
The order is this
|
@ccordoba12 Unfortunately this didn't resolve the issue for me. Below are the steps I took starting from scratch.
Choppiness still didn't go away. One thing I noticed was that even after I installed pyqt5, the bottom of "python - About python" still showed Qt4 and PyQt4. I'm fairly new to this so please tell me anything else I should provide that could help you pinpoint the problem. Thanks! |
@zzhao212, if you're new to this, please wait until Anaconda 4.1 is released at the end of this month, then just reinstall it. That version will come with Spyder 3.0 and Qt5. If you don't want to wait, please follow my instructions in the exact same order I gave them, and drop your step 1. |
@zzhao212, I'm very sorry, I just noticed my instructions are wrong! :-) I'll post new instructions tomorrow after releasing Spyder 3.0 beta 3. |
@ccordoba12 Thanks! Is it going to be on this thread? |
Yep, and I'll also post them in our release announcement (in our mailing list :-) |
hi! ccordoba12. Can you add me to your mailing list? tks! |
This is the address of our mailing list https://groups.google.com/forum/#!forum/spyderlib You can subscribe yourselves :-) |
Ok, I released Spyder 3.0 beta3, so the new instructions are:
The second command should install the |
@ccordoba12 Error: Package missing in current osx-64 channels:
So what is happening |
Sorry, I uploaded the packages to the wrong channel. Please try again, now things should be working fine :-) |
@ccordoba12 Problem solved! Thanks so much for your continued help. Please keep up the good work. |
Hi! I followed the instruction. But it is still the same problem that I can not open Navigator once qt5 and pyqt 5 have been installed. Thanks! |
The same issue occurs for me when I try to open Navigator, every time I get an error that says "Navigator Quit unexpectedly" |
This is a problem with Navigator not working correctly with Qt5 (although it shouldn't have any problems). @goanpeca, please start testing Navigator with Qt5 in Mac and try to fix this error :-) |
@ccordoba12 Now that the sluggishness is gone, there seems to be a new issue. If I open up spider, leave it hanging and do nothing at all, I get the spinning wheel of death after roughly 10min and need to force quit. Any idea which areas I need to look into to provide a more accurate description of the problem? Thanks. |
@zzhao212 I have exactly same problem. Any idea to fix this, please? Many thanks. |
Guys, please open a new issue about this problem. I consider the El 08/06/16 a las 05:10, Suinga escribió:
|
@ccordoba12 It seems that Anaconda4.1 doesn't ship with spyder3 and qt5. Is there plan to reflect those upgrades in a later release of Anaconda? Thanks. |
Hi, I have followed the steps suggested above (involving uninstalling qt and qtpy) , now I am getting this error: qtpy.PythonQtError: No Qt bindings could be found - I have installed qt and qtpy, but I am still getting the same error. Thanks! |
Description
What steps will reproduce the problem?
When I try to edit any python file there is a noticeable delay for every keystroke. It's almost unusable.
The same issue happens with the Anaconda Spyder and the executable downloaded from GitHub.
1.
2.
3.
What is the expected output? What do you see instead?
Please provide any additional information below
Version and main components
Optional dependencies
The text was updated successfully, but these errors were encountered: