Jupyter笔记本中的内核需要太长时间才能自动完成(制表符) [英] Kernel taking too long to autocomplete (tab) in Jupyter notebook
问题描述
我刚刚为Deep Learning
安装了一些库,例如keras
,theano
等.安装正常,但是当我在Jupyter notebook
中编写代码并按tab
进行自动补全时,jupyter notebook
的内核自动补全似乎花了太长时间.有时需要花费几分钟才能显示自动完成的选项.我最初以为内核已挂起,所以每次都必须重新启动它.
I just installed a few libraries for Deep Learning
like keras
, theano
etc. The installation went fine but when I write code in Jupyter notebook
and press tab
for autocompletion, the kernel of jupyter notebook
seems to take too long for autocompletion. There have been time when it has taken minutes to display autocompleted options. I initially thought that the kernel hung so I had to restart it every time.
我在另一篇Stack Overflow文章中读到,安装pyreadline
可能会有所帮助.我安装了它,但是仍然有同样的问题.
I read in another Stack Overflow post that installing pyreadline
may help. I installed it but I'm still having the same problem.
还有其他人遇到过这个问题吗?我该如何解决这个问题?
Has anyone else faced this problem? How do I go about fixing this?
任何指针将不胜感激.
推荐答案
答案不多,但是您可以在笔记本顶部尝试使用此方法:
%config Completer.use_jedi = False
Little late answer, but you might try this at the top of your notebook:
%config Completer.use_jedi = False
这篇关于Jupyter笔记本中的内核需要太长时间才能自动完成(制表符)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!