启动 ipython 时出错?

启动 ipython 时出错?

当我启动时ipython,屏幕上打印以下错误:

[TerminalIPythonApp] 错误 | 加载配置文件 /home/cossio/.ipython/profile_default/ipython_config.py 时出现异常

回溯(最近一次调用最后一次):

文件“/usr/lib/python2.7/dist-packages/IPython/config/application.py”,第 514 行,在 _load_config_files config = loader.load_config()

文件“/usr/lib/python2.7/dist-packages/IPython/config/loader.py”,第 425 行,在 load_config self._read_file_as_dict() 中

文件“/usr/lib/python2.7/dist-packages/IPython/config/loader.py”,第 478 行,在 _read_file_as_dict py3compat.execfile(conf_filename,namespace)

文件“/usr/lib/python2.7/dist-packages/IPython/utils/py3compat.py”,第 224 行,在 execfilebuiltin_mod.execfile(filename,*where)

文件“/home/cossio/.ipython/profile_default/ipython_config.py”,第 535 行,位于

IPythonWidget.buffer_size=999999 NameError: name 'IPythonWidget' is not defined

尽管如此,它ipython还是启动了,我可以使用。但我不知道这个错误的原因是什么?

我正在使用 Xubuntu 15.04、Python 2.7.9 和 IPython 2.3.0。

相关内容