Ipython console in Spyder stuck on “connecting to kernel”

后端 未结 12 2012
夕颜
夕颜 2021-01-01 11:07

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 64 bit PC.

The problem that I have is that, e

相关标签:
12条回答
  • 2021-01-01 11:22

    A very special thing happened to me, but it raised the same error ("connecting to kernel" freeze on Spyder): a '.' has accidentally slipped into my "pytable.py" file from pandas. Probably I opened it after an error and changed it / saved it accidentally.

    So, if you are using anaconda, check if by mistake a file in ...\Continuum\Anaconda\Lib\site-packages was changed ( sort file by date and see if a file was modified today for instance)

    After fixing the changed file, everything is back to normal.

    0 讨论(0)
  • 2021-01-01 11:25

    Had the same issue. I closed the console window, then opened a new one (CTRL+T) and that fixed it. Problem didn't come back after a restart.

    0 讨论(0)
  • 2021-01-01 11:27

    Had the same problem. At first it couldn't find the kernel. Closing Consol and reopening did not work. However, what did work was closing Spyder and then reopening. Note: I am running from python(x,y), not Anaconda.

    0 讨论(0)
  • 2021-01-01 11:28

    I had the same issue in Anaconda. I updated the spyder-kernels module and it seems to work fine now.

    0 讨论(0)
  • 2021-01-01 11:28

    I was stuck with this error for a long time, I tried all the solutions above and the only one that resolved was to reset Spyder:

    spyder --reset

    0 讨论(0)
  • 2021-01-01 11:41

    Also had the same problem. Firstly, I solved this problem by spyder --reset. But when I turned into my working project tree, this problem happened again. So I reinstalled anaconda and upgraded spyder, but unfortunately, this problem remained unsolved.

    Then I thought, why spyder --reset could work? Then I began a new empty project, and this problem didn't happen. So I realized that maybe there is something wrong with my working project.

    After some searching, I found that a file named decorator.py may be the problem. Whatever project I moved this file in, the problem happened again. Then I changed the name of this file as Decorator.py, the problem was solved. So my advice is switching your working project to a new project, then watch whether this problem could happen again.

    But afterwards, I still do not know why python file can't be named decorator.py. If somebody knows, please tell me.

    0 讨论(0)
提交回复
热议问题