Spyder的历史杀死了内核

时间:2016-08-17 07:31:37

标签: python kernel anaconda spyder

我的spyder已经工作了一个月但它突然停止了工作。 这是内部日志。

/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

我没有得到错误的含义。有人遇到过这个问题吗? 谢谢 !

1 个答案:

答案 0 :(得分:0)

原因是历史文件以某种方式被截断或以其他方式损坏。历史文件名为history.py,它位于spyder配置目录中,即/Users/Name_User/.spyder2或类似。要解决该问题,需要删除该文件。