如何在Jupyter Notebook中永久性地将'Completer.use_jedi'配置为'False'

8
每次打开一个新的jupyter笔记本实例,都需要运行%config Completer.use_jedi = False命令,才能开始使用自动完成功能。
每次在编码之前都要配置use_jediFalse,这很烦人。
请问是否有永久性的解决方法来在jupyter笔记本中启用自动完成功能?
2个回答

6

我从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


3
# 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

(注:此链接为相关的技术问题页面)

虽然这个链接可能回答了问题,但最好在此处包含答案的基本部分并提供参考链接。如果链接页面更改,仅有链接的答案可能会失效。- 来自审查 - Tristan
@TristanSeifert:答案里甚至没有链接。 - Jeremy Caney
在 JupyterLab 中,自动完成功能似乎可以直接使用,无需激活。 - robertspierre

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接