Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kernel taking too long to autocomplete (tab) in Jupyter notebook

Tags:

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.

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?

Any pointers would be greatly appreciated.

like image 606
Patthebug Avatar asked May 25 '17 17:05

Patthebug


People also ask

Why is my Jupyter Notebook not autocomplete?

Enable autocomplete featureTo enable code autocomplete in Jupyter Notebook or JupyterLab, you just need to hit the Tab key while writing code. Jupyter will suggest a few completion options. Navigate to the one you want with the arrow keys, and hit Enter to choose the suggestion.

How do you autofill in Jupyter Notebook?

Access the Jupyter Menu You have auto-complete in Jupyter notebooks like you have in any other Jupyter environment. Simply hit the “Tab” key while writing code. This will open a menu with suggestions. Hit “Enter” to choose the suggestion.


1 Answers

Little late answer, but you might try this at the top of your notebook:
%config Completer.use_jedi = False

like image 85
Miles Avatar answered Nov 07 '22 05:11

Miles