我做了一些升级之后,我注意到如果我在脚本或控制台中打印,则不显示任何内容。我甚至还记得在之前的版本中(我最近做了很多升级),在打印输出显示的Ipython旁边有一个选项卡,但升级Spyder后,它不见了。我也得到了很多内核死亡,重新启动,它已经非常接近无法使用。我曾经喜欢spyder,现在我浪费了太多时间来关闭/重新启动/重置,以便完成我的工作。Spyder Ipython控制台完全忽略打印语句
我使用的是Anaconda 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
Anaconda的当前版本是4.3.1。你的意思是你使用Python 3.5吗?您正在使用哪个版本的Spyder? – Craig
我有蟒蛇版本4.1.1,以及spyder 3.1.1 py35。 –
Spyder的最新版本是3.1.3,根据[changelog](https://github.com/spyder-ide/spyder/blob/master/CHANGELOG.md)进行了许多错误修复。我建议更新到最新版本的Spyder并再次测试。如果仍然失败,请发布导致错误的代码。 – Craig