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.
Fortunately, the JupyterLab and Jupyter Notebook comes with the IPython magic command %config Completer. use_jedi = False that enables the library/function autocompletion (like IntelliSense in Microsoft development environment term).
To 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.
Yes you have auto-complete built-in Jupyter, 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.
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
# 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With