question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Code completion in the Editor doesn't work properly, unlike in the IPython console

See original GitHub issue

From marushk…@gmail.com on 2015-02-06T08:44:55Z

Spyder Version: 2.4.0dev Python Version: 3.4.1 Qt Version : 4.8.6, PyQt4 (API v2) 4.10.4 on Windows pyflakes >=0.6.0: 0.7.3 (OK) pep8 >=0.6 : 1.4.6 (OK) IPython >=1.0 : 2.3.1 (OK) zmq >=2.1.11 : 14.4.1 (OK) pygments >=1.6 : 2.0.1 (OK) pandas >=0.13.1 : 0.14.1 (OK) sphinx >=0.6.6 : 1.2.3 (OK) jedi >=0.8.1 : 0.8.1-final0 (OK) rope >=0.9.2 : 0.9.4-1 (OK) matplotlib >=1.0: 1.4.0 (OK) sympy >=0.7.0 : 0.7.5 (OK) pylint >=0.25 : 1.4.1 (OK)

What steps will reproduce the problem?

  1. Import module
  2. Create a local variable using class from the module
  3. Write the name of the variable, put the dot and call the autocompletion (TAB or CTRL+SPACE)

What is the expected output? What do you see instead?

In the editor: I expected popup box with available methods and members, but it don’t appear. In the console: All is OK.

Please provide any additional information below

I tried numpy and cv2:

import numpy as np # 'imp' completion works, 'num' completion works
arr = np.array([1,2,3,4,5]) # 'np.' completion works
arr. # completion don't work 

import cv2
cap = cv2.VideoCapture(0) # 'cv2.' completion works
cap. # completion don't work 

Same code in console work fine. I use Anaconda and last spyder version from bitbucket and run it like follow: “python bootstrap.py --debug” When I call completion for variable arr. or cap. I got next debug output: completions request: [] completions request from jedi complete: “[]” in 0.1 sec completions request from rope complete: “[]” in 0.2 sec got timeout

_Original issue: http://code.google.com/p/spyderlib/issues/detail?id=2162_

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:44 (21 by maintainers)

github_iconTop GitHub Comments

3reactions
ceazacommented, Sep 2, 2017

@stonebig @bcolsen removing enum34 did the trick.

3reactions
ccordoba12commented, Dec 10, 2016

This is really cool!! Thanks a lot for taking the time to look into it.

It’d be great if you could have a patch for Spyder before January 7, which is the feature freeze date for Spyder 3.1 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why autocompletion options in Spyder 3.1 are not fully ...
On the other hand, Spyder's Editor doesn't have a console to run code into, so it has to get completions by running static...
Read more >
Working with Jupyter Notebooks in Visual Studio Code
The Python Jupyter Notebook Editor window has full IntelliSense – code completions, member lists, quick info for methods, and parameter hints. You can...
Read more >
IPython reference — IPython 3.2.1 documentation
Command line completion¶. At any time, hitting TAB will complete any available python commands or variable names, and show you a list of...
Read more >
Python IDEs and Code Editors (Guide)
If an IDE or editor won't let you save your work and reopen everything later, ... Python debugging, code completion, and an interactive...
Read more >
First Steps with Spyder — Spyder 5 documentation
You'll get familiar with opening Spyder in different ways, working with ... Define variables in the Editor and modify their values in the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found