Closed nbroers closed 7 years ago
Thanks for reporting. This is a duplicate of issue #4410.
We still don't know why but autocompletion is working fine for Anaconda users and broken for some users that don't use it.
So my suggestion is to use Anaconda instead of your own Python installation, if possible.
I just reinstalled anaconda and auto completion working now.
Steps that I followed:
1> Uninstall Anaconda from control panel 2> Restart Computer 3> Download and install anconda from [https://www.anaconda.com/download/#windows] 4> Restart again before it you start anaconda. 5> done.
Dependencies in spyder - 3.2.4 (python 3.6)
IPython >=4.0 : 6.1.0 (OK) cython >=0.21 : 0.26.1 (OK) jedi >=0.9.0 : 0.10.2 (OK) nbconvert >=4.0 : 5.3.1 (OK) numpy >=1.7 : 1.13.3 (OK) pandas >=0.13.1 : 0.20.3 (OK) pycodestyle >=2.3: 2.3.1 (OK) pyflakes >=0.6.0 : 1.6.0 (OK) pygments >=2.0 : 2.2.0 (OK) pylint >=0.25 : 1.7.4 (OK) qtconsole >=4.2.0: 4.3.1 (OK) rope >=0.9.4 : 0.10.5 (OK) sphinx >=0.6.6 : 1.6.3 (OK) sympy >=0.7.3 : 1.1.1 (OK)
Have faced the same problem today. Auto-completion works fine in IPython console but not working in Editor for Pandas functions.
What steps will reproduce the problem? -- Fresh install from Anaconda -- When I type in a new line jannie = 'aaa' jann
It works fine in Editor (either by TAB or CTRL+SPACE) and IPython Console.
But in another example:
import re
import pandas as pd
time_sentences = ["Monday: The doctor's appointment is at 2:45pm.",
"Tuesday: The dentist's appointment is at 11:30 am.",
"Wednesday: At 7:00pm, there is a basketball game!",
"Thursday: Be back home by 11:15 pm at the latest.",
"Friday: Take the train at 08:10 am, arrive at 09:00am."]
df = pd.DataFrame(time_sentences, columns=['text'])
When I type
df.te
and strike TAB (or CNTR+SPACE), nothing happens in Editor, though it works fine in IPython Console.
Please provide any additional information below
Versions and main components
Dependencies
IPython >=4.0 : 6.2.1 (OK) cython >=0.21 : 0.27.3 (OK) jedi >=0.9.0 : 0.11.1 (OK) nbconvert >=4.0 : 5.3.1 (OK) numpy >=1.7 : 1.14.2 (OK) pandas >=0.13.1 : 0.22.0 (OK) pycodestyle >=2.3: 2.3.1 (OK) pyflakes >=0.6.0 : 1.6.0 (OK) pygments >=2.0 : 2.2.0 (OK) pylint >=0.25 : 1.8.2 (OK) qtconsole >=4.2.0: 4.3.1 (OK) rope >=0.9.4 : 0.10.7 (OK) sphinx >=0.6.6 : 1.6.6 (OK) sympy >=0.7.3 : 1.1.1 (OK)
Autocompletion does not work for me either in editor nor in Ipython console. Sometimes it does sometimes not. And it is very slow if it happens to work. spyder 3.2.8
For me, autocompletion only works in IPython, but not in the editor...
I'm seeing a slight variation of this. On my system, Autocomplete works fine when I first start Spyder, but then after a while (I am not sure what, maybe some form of power event), it ceases to work. Everything else seems to be working fine.
Is there a separate issue related to that? Or should I create one?
I am on Anaconda 3, very latest, Spyder:
@lleeoo, please don't open more issues about this. Right now we're working on replacing our current completion architecture for a new one, but that work is going to land in Spyder 4. Due to that, we're not going to try to fix this problem in Spyder 3.
Auto completion was working for me on Console but not in the editor (SPYDER). updated the Jedi using below command in terminal and its working fine now: conda update jedi
On my mac, it wasn't working earlier when I was keeping spyder IDE open and anaconda (its parent window) close. I reopened spyder and this time kept anaconda open as well, and autocomplete started working.
No complications needed.
Cheers
I have solved this issue removing and installing again the "rope" pkg for python.
sudo pip3 install rope
This fixed the issue for me
I'm having the same problem. Autocomplete not working on python nor in IPython notebook. Particularly, for dataframes.
Here are the details:
IPython >=4.0 : 6.4.0 (OK) cython >=0.21 : 0.28.2 (OK) jedi >=0.9.0 : 0.12.0 (OK) nbconvert >=4.0 : 5.3.1 (OK) numpy >=1.7 : 1.14.3 (OK) pandas >=0.13.1 : 0.23.0 (OK) pycodestyle >=2.3: 2.4.0 (OK) pyflakes >=0.6.0 : 1.6.0 (OK) pygments >=2.0 : 2.2.0 (OK) pylint >=0.25 : 1.8.4 (OK) qtconsole >=4.2.0: 4.3.1 (OK) rope >=0.9.4 : 0.10.7 (OK) sphinx >=0.6.6 : 1.7.4 (OK) sympy >=0.7.3 : 1.1.1 (OK)
Please let me know what to do. Thanks!
sad to say but spyder has by far proven to be the most unstable IDE I ever used. Have been trying to fix things around since morning and stuff keeps breaking one after the other. And now I am again trying to look for why autocomplete isn't working :( This is not the first time this issue has happened, seems more like Spyder’s internal decision decides when autocomplete should work and when not depending on the day of the week.
As an R user I always felt very disappointed with Spyder. I often wish RStudio team could develop a PyStudio to totally replace Spyder.
I installed Spyder using the Anaconda GUI and it may have created dependencies issues:
spyder 4.2.1 requires pyqt5<5.13, which is not installed. spyder 4.2.1 requires pyqtwebengine<5.13, which is not installed. spyder 4.2.1 requires jedi==0.17.2, but you have jedi 0.18.0 which is incompatible. spyder 4.2.1 requires parso==0.7.0, but you have parso 0.8.1 which is incompatible. python-language-server 0.36.2 requires jedi<0.18.0,>=0.17.2, but you have jedi 0.18.0 which is incompatible.
To solve this I ran the following command in Anaconda prompt in Administration mode for the related environment (from Windows start search)
pip install --upgrade --force-reinstall spyder
and it reinstalled the required version of the dependencies. Now autocompletion is working.
Note: I ran into uninstalling packages issues while reinstalling spyder. Use pip uninstall
Description of your problem
Autocomplete stopped working in the Spyder editor (it worked before, but no longer).
What steps will reproduce the problem?
jannie = 'aaa' jann
(Followed by CTRL + SPACE to activate autocomplete). Nothing happens. No output in Python console.
Also, no results when attempting auto-complete for built-in modules, functions, etc.
If I go to Consoles -> Open a Python Console and do the same, then autocomplete does work.
I can confirm that CTRL + SPACE also works correctly in the Sublime Text editor.
What is the expected output? What do you see instead?
Expected popup of autocomplete dialog. No popup appeared.
Please provide any additional information below
The following settings are enabled in Preferences -> Editor -> Code Introspection/Analysis:
Display balloon tips
Automatic code completion
Case sensitive code completion
Enter key selects completion
Link to object definition
Real-time code analysis
Real-time code style analysis
Code annotations
Perform analysis when saving file and every 2500 ms
Versions and main components
Dependencies
Please go to the menu entry
Help > Optional Dependencies
(orHelp > Dependencies
), press the buttonCopy to clipboard
and paste the contents below:jedi >=0.9.0 : 0.10.2 (OK) matplotlib >=1.0 : None (NOK) nbconvert >=4.0 : 5.2.1 (OK) numpy >=1.7 : None (NOK) pandas >=0.13.1 : None (NOK) pep8 >=0.6 : 1.7.0 (OK) pyflakes >=0.6.0 : 1.5.0 (OK) pygments >=2.0 : 2.2.0 (OK) pylint >=0.25 : 1.7.1 (OK) qtconsole >=4.2.0: 4.3.0 (OK) rope >=0.9.4 : 0.10.5 (OK) sphinx >=0.6.6 : 1.6.2 (OK) sympy >=0.7.3 : 1.0 (OK)