3

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.

This is tiring every time, to config use_jedi to False before coding.

kindly suggest if there is a permanent fix to have autocomplete in juypter notebook.

Santosh K
  • 327
  • 4
  • 10

2 Answers2

4

I launch my jupyterlab from docker and catch this problem. I solved like this:

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

Content ipython_kernel_config.py:

c.Completer.use_jedi = False

idea: https://github.com/ipython/ipython/issues/11530

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

bhola prasad
  • 315
  • 1
  • 9
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/low-quality-posts/28238056) – Tristan Feb 03 '21 at 19:52
  • @TristanSeifert: There’s not even a link in the answer. – Jeremy Caney Feb 04 '21 at 01:38
  • In JupyterLab the autocomplete feature seems to work out-of-the-box without the need to activate it – robertspierre Apr 20 '21 at 14:23