Spyder: Ipython console stuck

廉价感情. 提交于 2019-12-12 04:09:19

问题


In Spyder, the Ipython console gets stuck for no apparent reason. Often it gets stuck on the

...:

After executing code. Hitting the red "stop the current command" button does nothing to correct the issue. Even worse, I have had it completely give up and not even start up after restarting the program. Any ideas what's going on? I have the latest versions installed.

Especially this seems to happen when calculating cross correlation using Numpy, example:

CrossCorrelate = np.correlate(In1,In2, "full")

Where in1 and in2 are my data vectors. The type of the data is numpy.ndarray, (or more simply 1D Numpy arrays). The length is usually around 30K data points, so it's unlikely the program is getting stuck. Only the Ipython console gets stuck.

EDIT: Apparently it's not stuck after-all, just takes longer than you would think it should (there is quite a bit of variance). The console must have crashed when I quit the program when it was counting...


回答1:


Found a workaround, put the cursor in the beginining of the command and keep hitting Ctrl+D, until all prompt are removed. The kernel restarts by itself or old prompt appears to delivr fresh command.



来源:https://stackoverflow.com/questions/36647374/spyder-ipython-console-stuck

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!