我做了一些升級之後,我注意到如果我在腳本或控制檯中打印,則不顯示任何內容。我甚至還記得在之前的版本中(我最近做了很多升級),在打印輸出顯示的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