spyder: ipython console slow response in Spyder

Hi,

I am attempting to use Spyder that came with my new install of Anaconda, but the ipython console within Spyder is extremely slow for anything, such as starting takes 1-2 minutes and even something such as 5+5 has a 5-10 second delay to get a response. If I run jupyter qtconsole from the Anaconda prompt, it will say kernel died a few times, but eventually start and then work normally e.g. 5+5 has an instant response.

If I do jupyter qtconsole and then connect to the .json that was created from that using the “Connect to an existing kernel” it looks like my ipython terminal in Spyder works fine, minus the variable explorer which is less than ideal.

I am using Windows 7 Enterprise

Version and main components

  • Spyder Version: 3.2.6
  • Python Version: 3.6.4
  • Qt Versions: 5.6.2, PyQt5 5.6 on Windows

Dependencies

pyflakes >=0.6.0 :  1.6.0 (OK)
pycodestyle >=2.3:  2.3.1 (OK)
pygments >=2.0   :  2.2.0 (OK)
pandas >=0.13.1  :  0.22.0 (OK)
numpy >=1.7      :  1.14.0 (OK)
sphinx >=0.6.6   :  1.6.6 (OK)
rope >=0.9.4     :  0.10.7 (OK)
jedi >=0.9.0     :  0.11.1 (OK)
nbconvert >=4.0  :  5.3.1 (OK)
sympy >=0.7.3    :  1.1.1 (OK)
cython >=0.21    :  0.27.3 (OK)
qtconsole >=4.2.0:  4.3.1 (OK)
IPython >=4.0    :  6.2.1 (OK)
pylint >=0.25    :  1.8.2 (OK)

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 36 (17 by maintainers)

Most upvoted comments

Downgrade ipykernel from 5.10 to 4.10 solved my problem here. conda install ipykernel=4.10.

Please update to our 3.2.8 version and try again. Also, please update Qt/PyQt to their latest version. For that, please open the Anaconda Prompt and run there

conda update spyder qt pyqt

Let us know if that fixes the problem for you.

@xhain What OS version are you using? Did you try any of the other fixes listed here or on #2902 (esp. if you are using macOS)? What version of Spyder and Spyder-Kernels are you using?

each time I update “all”

In general, this is not a good idea since it has a high chance of breaking things for often not much real gain. Instead, it is generally a good idea to only upgrade packages a unit when new Anaconda releases come out because these are tested to work together without major issues (with conda update anaconda) other than Spyder and specific packages where there is a significant benefit to your workflow to upgrade or is needed to fix a problem, e.g. a bugfix or performance improvement in Qt/PyQt, a new feature in Pandas, etc.

@petermattia For clarity (since that’s a long thread), that being conda install ipykernel=4.10.

@petermattia, please see issue #2902 for a temporary solution.