jupyter notebook 中打开ipynb文件时报错 NameError: name 'true' is not defined

 在jupyter notebook 中打开ipynb文件时报错:

File "e:\python36\lib\site-packages\traitlets\config\loader.py", line 457, in load_config
    self._read_file_as_dict()
  File "e:\python36\lib\site-packages\traitlets\config\loader.py", line 489, in _read_file_as_dict
    py3compat.execfile(conf_filename, namespace)
  File "e:\python36\lib\site-packages\ipython_genutils\py3compat.py", line 198, in execfile
    exec(compiler(f.read(), fname, 'exec'), glob, loc)
  File "C:\Users\xiaoqiu\.ipython\profile_default\ipython_config.py", line 513, in 
    c.Completer.greedy = true
NameError: name 'true' is not defined

resolution:

在执行了ipython profile create 命令(激活自动补全的功能)之后  C:\Users\xiaoqiu\.ipython\profile_default生成了两个文件

需要修改ipython_config.py文件修改如下三个参数

jupyter notebook 中打开ipynb文件时报错 NameError: name 'true' is not defined_第1张图片

你可能感兴趣的:(tool)