简体   繁体   English

如何在 Juypter Notebook 中将“Completer.use_jedi”永久配置为“False”

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

Every time a new jupyter notebook instance is opened, it requires %config Completer.use_jedi = False command to be run, before autocomplete functionality starts working.每次打开新的jupyter 笔记本实例时,都需要运行%config Completer.use_jedi = False命令,然后才能开始自动完成功能。

This is tiring every time, to config use_jedi to False before coding.每次都在编码之前将use_jedi配置为False很累。

kindly suggest if there is a permanent fix to have autocomplete in juypter notebook.请建议是否有永久性修复在 juypter notebook 中具有自动完成功能。

I launch my jupyterlab from docker and catch this problem.我从 docker 启动我的 jupyterlab 并发现了这个问题。 I solved like this:我这样解决:

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

Content ipython_kernel_config.py:内容 ipython_kernel_config.py:

c.Completer.use_jedi = False

idea: https://github.com/ipython/ipython/issues/11530想法: 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

For More info - https://github.com/ipython/ipython/issues/11530欲了解更多信息 - https://github.com/ipython/ipython/issues/11530

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM