[英]History on spyder kills the kernel
我的間諜已經工作了一個月,但突然停止工作了。 這是內部日志。
/Users/Name_User/anaconda/lib/python2.7/site-packages/nbformat/current.py:19: UserWarning: nbformat.current is deprecated.
- use nbformat for read/write/validate public API
- use nbformat.vX directly to composing notebooks of a particular version
""")
Traceback (most recent call last):
[ . . . ]
File "/Users/Name_User/anaconda/lib/python2.7/site-packages/spyderlib/widgets/shell.py", line 494, in load_history
if rawhistory[1] != self.INITHISTORY[1]:
IndexError: list index out of range
我不知道錯誤的含義。 有人遇到過這個問題嗎? 謝謝 !
原因是歷史文件被某種方式截斷或損壞。 歷史記錄文件名為history.py
,位於spyder配置目錄中,該目錄為/Users/Name_User/.spyder2
或類似文件。 為了解決該問題,需要刪除該文件。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.