在我做了一些升级之后,我注意到如果我在脚本中打印,甚至在控制台中打印,则不会显示任何内容。我甚至还记得在以前的版本(我最近做了很多升级)中,Ipython旁边有一个标签,显示了打印输出,但是升级Spyder之后,它就不见了。我也有很多内核死掉,重新启动,它已经接近不可用了。我以前很喜欢spyder,现在为了完成我的工作,我浪费了太多的时间来关闭/重新启动/重置。
我在用水蟒3.5。
就在我写这篇文章的时候,一个名为“内部控制台”的标签突然出现,告诉我以下内容:
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:root:kernel died: 6.001342296600342
WARNING:root:kernel died: 6.000344276428223
Traceback (most recent call last):
File "C:\Users\Ahmad\Anaconda3\lib\site-packages\qtconsole\console_widget.py", line 412, in eventFilter
return self._event_filter_console_keypress(event)
File "C:\Users\Ahmad\Anaconda3\lib\site-packages\qtconsole\frontend_widget.py", line 381, in _event_filter_console_keypress
return super(FrontendWidget, self)._event_filter_console_keypress(event)
File "C:\Users\Ahmad\Anaconda3\lib\site-packages\qtconsole\console_widget.py", line 1130, in _event_filter_console_keypress
self.copy()
File "C:\Users\Ahmad\Anaconda3\lib\site-packages\qtconsole\frontend_widget.py", line 249, in copy
was_newline = text[-1] == '\n'
IndexError: string index out of range
Spyder允许您配置跑步选项。您可以在外部控制台或当前的python或ipython控制台中运行。可能升级时默认值发生了更改?
http://www.southampton.ac.uk/~fangohr/blog/spyder-the-python-ide.html#run-settings
相关问题 更多 >
编程相关推荐