Spyder中的Ipython控制台坚持“连接到内核” [英] Ipython console in Spyder stuck on "connecting to kernel"

查看:463
本文介绍了Spyder中的Ipython控制台坚持“连接到内核”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是python的新手,来自Matlab,我在Win 8 64位PC上安装了最新版本的Python(x,y)(2.7.9.0)。

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.

我遇到的问题是,每次启动Spyder时,默认的IPython控制台都会卡在连接到内核上。我可以看到每次都会启动一个新内核,因为新的.json文件出现在目录.ipython \profile_default\security中。我可以通过点击连接到现有内核然后浏览找到它来打开一个新的IPython控制台来访问这个内核,然后它工作正常(除了我创建的变量没有出现在变量explorer中)。我也可以从这个新的IPython控制台退出内核,但这并没有解决我的问题,因为当我通过点击打开一个IPython控制台或重新启动Spyder启动一个新的IPython控制台时,它仍然挂起连接到内核并创建一个新的.json文件。

The problem that I have is that, each time I start Spyder, the default IPython console gets stuck on "connecting to kernel". I can see that a new kernel is launched each time because a new .json file appears in the directory ".ipython\profile_default\security". I can access this kernel by opening a new IPython console by clicking on "connect to an existing kernel" and then browsing to find it, then it works fine (except that the variables I create do not appear in the variable explorer). I can also quit the kernel from this new IPython console but this does not solve my problem because when I launch a new IPython console by clicking on "open an IPython console" or restarting Spyder, it still hangs on "connecting to kernel" and creates a new .json file.

我在论坛上找到的最接近的问题是 one ,唯一的区别是我在内部控制台中没有import sitecustomize错误。我试过卸载Python(x,y)和python,但无济于事。任何提示都会非常感激。

The closest issue that I could find on a forum is this one, the only difference being that I do not have the "import sitecustomize" error in the internal console. I have tried uninstalling Python(x,y) and python but to no avail. Any hint would be really appreciated.

推荐答案

我在Anaconda部分的Windows菜单中运行重置Spyder设置。

I run "Reset Spyder Settings" from the Windows Menu in the Anaconda section.

这篇关于Spyder中的Ipython控制台坚持“连接到内核”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆