jupyter lab代码补全,默认设置是没有打开的

1. 打开Anaconda Prompt

输出下行代码生成 .ipython 配置文件

ipython profile create 

2. 在当前用户 ~/.ipython/profile_default/下打开生成的文件

c.Completer.jedi_compute_type_timeout = 400
c.Completer.greedy = True
c.Completer.use_jedi = True

修改以上内容 ,注意取消注释。

重新打开jupyter lab / jupyter notebook就可以了