如何在 Jupyter Notebook 中永久配置 'Completer.use_jedi' 到 'False'

How to config 'Completer.use_jedi' to 'False' in Juypter Notebook permanently

每次打开新的 jupyter notebook 实例时,在自动完成功能开始工作之前,它需要 %config Completer.use_jedi = False 命令为 运行。

每次都这么累,编码前把use_jedi配置成False

请建议是否有永久性修复程序可以在 juypter notebook 中自动完成。

我从 docker 启动我的 jupyterlab 并发现了这个问题。 我是这样解决的:

COPY ipython_kernel_config.py /root/.ipython/profile_default/ipython_kernel_config.py

内容ipython_kernel_config.py:

c.Completer.use_jedi = False

想法:https://github.com/ipython/ipython/issues/11530

# Generate config
ipython profile create
# Edit config file in vim
vim .ipython/profile_default/ipython_kernel_config.py
# And change 
c.IPCompleter.use_jedi = False in ipython_config.py

更多信息 - https://github.com/ipython/ipython/issues/11530