-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autocomplete not working #2435
Comments
That sounds like it's taking a very long time to find the possible completions, and execution is getting held up behind the completion code. Can you check:
@Carreau if IPython 6 is involved, it sounds like the timeout for jedi completions might not be working. |
Exactly, it takes too long, and it is IPython 6.0.0.
|
Is there a way to turn off autocomplete? It not only slows me down but often also crashes the kernel? And I wonder if I am the only one having this issue on the planet? Thanks. |
There isn't a way to turn off autocompletion altogether. If I'm right about jedi being the problem, it may be possible to turn off the part that uses jedi. But I'm confused about whether or not the kernel completions actually use jedi (@Carreau?). You're not the only person having problems; see issues on ipython/ipython for more info. |
Thank you. Adding the line |
i'm having the same issue once i updated all my packages with conda. tab seems to crash my kernal. bit of a hard habit to kill haha |
@danieljoonlee over on ipython/ipython#10560, there was a bug identified in the conda packages of |
@takluyver ah thank you! |
My (tab) autocomplete intermittently stops working, not sure if this is the same issue --- it does not seem to be that it's simply taking too long, it just never appears (nothing happens after hitting tab), but execution time remains the same. The problem continues until the kernel restarts. It might be related to significant amounts of data in active memory... but I'm not sure. Any recommendations to further diagnose issue?
|
I'm having the same issue on a windows server running windows server 2012R2. Whenever I tab it takes a random amount of time for anything to happen. If I keep writing and commit the cell, nothing happens and it often just does not respond. Manually typed selected output below (like our forefathers did it)
|
I am suddenly and inexplicably having a similar problem. I am used to using tab autocomplete a LOT. Now, when I try to autocomplete from within jupyter notebook or lab, the kernel activity button briefly flashes, but nothing happens. No autocomplete. I have no idea how to debug or fix this. It is extremely hard to use my notebooks without tab autocomplete.
|
Have you tried shutting down the server and starting it again? Do you still have tab completions if you use IPython in a terminal? |
Thanks for your reply!
Yes. No effect.
Yes. |
I have also tried from a different browser (Safari instead of Chrome). |
What about if you use one of the other Jupyter frontends, like |
I resolved this by upgrading to ipython version 6.2.1. |
I've seen a similar problem with IPython 6.3.0. Using it with pandas 0.22 breaks auto completion for pandas column names. Rolling back to 6.2 returns the auto completion. I'm using jedi 0.11.1 but I think the behavior depends on IPython versions more. |
We switched off our own completions by default for 6.3 to better test the completions we get from Jedi, and there are still some problems with those. I may need to make 6.3.1 to switch back to our own completions. In the meantime, you can configure it with |
I've made a 6.3.1 release. |
same issue here! I suspect that, for me, autocompletion in Jupyter stopped working after I updated IPython from 5.3 to 7.2. Curiously enough, Jupyter still autocompletes dictionary keys, but not variables or class members. |
After an upgrade from 5.x to 7.2 IPython tab completion also fails on some objects in my environment.
|
thanks! disabling jedi helped |
I've also had to disable jedi because the completions are too flaky, but I do miss the extra functionality; does anyone (cc @takluyver) have a suggestion for how to track down the issue/come up with a minimal example? Debuggers, etc. don't seem to work now that IPython is async and I'm not sure how to test this outside of the REPL. |
Just to let you know that I installed Jupyter recently and got victim of this TAB issue. The workaround disabling Jedi autocompletion fixed the problem. Info shows the same
|
@bnaul a suggestion to setup a minimal example to try to reproduce your issue
Full test documentaion see jedi test docs In my case this is 100% Jedi. I added a test to my local jedi clone and could reproduce the issue (IPython is not involoved). Unfortunately i can not open an issue since code is proprietary. |
Can you try it in IPython? I don't use Jupyter Notebook, so it's pretty hard for me to reproduce. What I do is this: |
ipython=7.13.0 Does not work in IPython either, it shows me completion for 3 files I have in that directory that start with a dot |
Please run this then:
|
Wow, there's a ton of debug output.
|
I finally found it. The problem is that matplotlib uses the following in its docstring now: In the older version I tested with, matplotlib used |
Hi I think I'm bumping into @mxposed same error but on numpy:
(doesn't autocomplete)
(autocompleted)
EDIT: I am aware that disabling jedi is a workaround (I read the whole issue) |
I don't think this actually works. Disabling Jedi won't help in this case, because @takluyver @Carreau I'm in favor of closing this issue. The original issue was probably resolved. You could then tag me in newer issues. But this issue serves now as a general autocompletion issue with different people complaining about different things (that were partially fixed a while ago). So I'm in favor of closing. Your call. |
@davidhalter the cell nr. 2 has been already executed, and disabling jedi does work. Feel free to close the issue, just thought I'd complete with correct information. |
Closing this for now then, and we can open a separate issue if necessary:
|
@Carreau I guess it should be more like Which surprisingly to me doesn't work, it's a bug in Jedi. Opened davidhalter/jedi#1628 in favor of this ticket. Also feel free to tag me whenever these kind of issues come up. |
Thanks a lot @davidhalter for taking care of this, jedi is awesome! |
I had the same problem. I use pyenv and discovered that jupyter does not search at pyenv's repository for jedi files. Thus, if you use pyenv, you need to install jedi on your local python instalation |
Ran into this recently and just found this thread, upgrading to |
I had this problem in a conda environment only. Disabling jedi by adding |
I also had this problem oddly. Completion worked in a venv with jedi=0.17.2 . completion did not work with a new venv using 0.18 |
This is a different issue. It's essentially this issue: ipython/ipython#12740 As a temporary solution use:
As soon as IPython master is released, we're fine. |
@davidhalter Downgrading jedi from 0.18 to 0.17.2 worked for me. Thanks for posting here and referencing the jedi issue. |
@davidhalter yep downgrading Jedi worked for me too. Thanks!!! |
Downgrading from jedi 0.18.0 to 0.17.2 fixed this issue for me in Windows. Just ran "pip install jedi==0.17.2" |
Thanks a lot, it works for me! |
I am having the same issue. It is because of Jedi as mentioned.
|
Downgrading jedi as below solved my problem. This issue helped a lot. Thanks. pip install jedi==0.17.2 |
For those using Jupyterlab and who have many kernels associated with |
Installed Python (3.6) via brew, and the notebook (version 5.0.0) via pip3.
When I hit tab, say, after
df.
, nothing happens, then, when I manually completedf.head()
, execution queued, and run after ~30 seconds. At the same time, suggestion drop-down menu appears.The text was updated successfully, but these errors were encountered: