question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IPython console stuck in "connecting to kernel"

See original GitHub issue

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

When I start Spyder from Anaconda3 or directly from Windows Menu I find the console stuck with “Connecting to kernal…” message. I can connect using “Connect to an existing kernel”–> Browse–> {selecting the kernel} and it opens in another ipython console

What steps reproduce the problem?

  1. Open Spyder (3.3.6) on Win10 menu/ Open Spyder (3.3.6) thru Anaconda navigator (Anaconda3)

What is the expected output? What do you see instead?

Console 1/A stuck with “Connecting to kernel…” status

Paste Traceback/Error Below (if applicable)


Spyder Internal Console

This console is used to report application
internal errors and to inspect Spyder
internals with the following commands:
  spy.app, spy.window, dir(spy)

Please don't use it to run your code

>>> WARNING:traitlets:kernel died: 18.000179767608643

Versions

  • Spyder version: 3.3.6
  • Python version: 3.7
  • Qt version: 5.9.7
  • PyQt version: 5.9.2
  • Operating System name/version: Win10 Pro, x64

Dependencies

IPython >=4.0     :  7.6.1 (OK)
cython >=0.21     :  None (NOK)
jedi >=0.9.0      :  0.13.3 (OK)
matplotlib >=2.0.0:  None (NOK)
nbconvert >=4.0   :  5.5.0 (OK)
numpy >=1.7       :  None (NOK)
pandas >=0.13.1   :  None (NOK)
pycodestyle >=2.3 :  2.5.0 (OK)
pyflakes >=0.6.0  :  2.1.1 (OK)
pygments >=2.0    :  2.4.2 (OK)
pylint >=0.25     :  2.3.1 (OK)
qtconsole >=4.2.0 :  4.5.1 (OK)
rope >=0.9.4      :  0.14.0 (OK)
sphinx >=0.6.6    :  2.1.2 (OK)
sympy >=0.7.3     :  None (NOK)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tanmoy7863commented, Apr 4, 2020

please uninstall your antivirus…I have faced the similar issue and by uninstalling the antivirus now spyder is working.

1reaction
ccordoba12commented, Feb 29, 2020

@Tim-K-DFW, thanks for your kind words! Please wait until we release our next version (4.1.0) in a couple of weeks, which comes with some fixes that could help in this case.

And please also open another issue to track your problem because this one is closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ipython console in Spyder stuck on "connecting to kernel"
The problem that I have is that, each time I start Spyder, the default IPython console gets stuck on "connecting to kernel".
Read more >
Common Illnesses — Spyder 5 documentation
If you receive the message An error occurred while starting the kernel in the IPython Console, Spyder was unable to launch a new...
Read more >
Ipython console in Spyder stuck on “connecting to kernel”
I am new to python and coming from Matlab and I have installed the latest version of Python(x,y) (2.7.9.0) on my Win 8...
Read more >
How to Fix Kernel Error in Jupyter Notebook
A kernel error occurs basically when you try opening a python 3 file in the wrong directory. The truth is Jupyter and Python...
Read more >
Console is stuck on "Connecting to kernel ..."
Whenever I open Spyder (3.2.6 on Linux Mint 19.3), the console gets stuck on "Connecting to kernel ...". In the Error box that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found