-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Code completion not working with tensorflow #5569
Comments
What do you mean by this? |
I looked at issue #4587, you comfirmed that code completion in the Editor doesn't work for all modules, so i may look for other solution. The weird thing is i have used vim with jedi or youcompleteme, though it may sometimes work slow, but it works. So i don't know why spyder can't do this. |
So what module are you trying to get completions for? |
numpy, sys, os, etc. In general, no module works, even local variable autocomplete. |
That means you have a problem with Rope or Jedi. How did you install Spyder and its dependencies? |
Through anaconda. I tried different jedi version but it doesn't work at all. Now i have jedi 0.10.2 and rope 0.10.5. |
I tried to uninstall anaconda and reinstall it and now it works. I will find out what i have done to disable autocomplete. |
I just figured out how things happened. When i freshly installed anaconda, everything is ok. Then i compiled tensorflow from source and used pip under anaconda to install generated whl file. After that, although i could import and use tensorflow in spyder successfully, but code autocomplete didn't work afterwards. |
OK, so what is the solution if I do not want to remove and install anaconda? Thx. |
I'm having the same issue, but remove and reinstall spyder doesn't bring the auto-completion back (also, the "Go to definition" is not working as well, quite useful when trying to understand the package). I am using anaconda installed spyder3.2.4 (from conda-forge), running on win7. The same problem happens with similar setup on my win10 laptop. Personally I suspect it's more of a windows problem than tf problem? Hope some one could figure out a solution soon, many thanks! |
What happens if you uninstall the pip version of tensorflow and install the conda one? |
As I mentioned, I would not use conda tf, since it's very outdated, but for the sake of debugging, I uninstalled pip tf and installed with conda, unfortunately, it does not resolve the problem. The following packages are in my env after I installed conda tf, perhaps it could give you some hints about what might went wrong. Please note there are duplicated packages installed by pip tf. packages in environment at C:\ProgramData\Anaconda3: _license 1.1 py36_1 defaults |
I have the same issue when I removed the Anacoda Tensorflow and installed the last version of it (1.4) using the pip. Autocomplete stopped. |
Let me conclude this bug for you. Definitely this problem exists. The package must be installed with Anaconda itself, I mean even if we install the Tensorflow from Anaconda cloud, but with a different owner (such as aaronzs to install the higher versions of the TF), it will not work either. The reason is unknown for me. it is quite weird. Also I removed the Jedi 0.10.2 from the conda installation and installed the latest version 0.11.0 using pip, and it worked either. |
Exact same thing happened to me, just pip upgraded tensorflow and keras. Reopened spyder and autocomplete didn't work. |
Closing as a duplicate of issue #5782. Please read that issue to get the solutions for this problem. |
Description of your problem
Today i installed spyder from anaconda distribution. It has version 3.2.4. When i started to code in spyder editor, i couldn't found any autocomplete function. I am confused now.
Versions and main components
The text was updated successfully, but these errors were encountered: