Skip to content
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

Editor and IPython different code completion tool working #2781

Closed
grgsolymosi opened this issue Oct 25, 2015 · 7 comments
Closed

Editor and IPython different code completion tool working #2781

grgsolymosi opened this issue Oct 25, 2015 · 7 comments
Labels

Comments

@grgsolymosi
Copy link

Editor window: if I write the a dot after any of pandas's object or after the pandas itself the editor drops up the object's methods as it usual, but sometimes writes no more information in the object inspector window.
Ipython windows: no methods after the dot, but shows all parameters/properties after I wrote manually the method's name.

Other: In preferences I set IPython to automatic import numpy/matplotlib, but always get error message:
'''Traceback (most recent call last):

File "", line 1, in
numpy.mean([1,2])

NameError: name 'numpy' is not defined
'''

@ccordoba12
Copy link
Member

  1. Ipython windows: no methods after the dot, but shows all parameters/properties after I wrote manually the method's name.

    This is a limitation of the libraries we use to do code completion on the Editor. We are investigating if we can improve the situation in the future on issue Code completion in the Editor doesn't work properly, unlike in the IPython console #2162.

  2. Automatic imports only work for the IPython console and not for the Editor. However, that option was not working correctly in previous Spyder versions, so I'd advise you to update to our 2.3.7 one.

@grgsolymosi
Copy link
Author

@ccordoba12

This is a limitation of the libraries we use to do code completion on the Editor. We are investigating if we can improve the situation in the future on issue #2162.

Thank you, I am looking forward to this future option.

Automatic imports only work for the IPython console and not for the Editor. However, that option was not working correctly in previous Spyder versions, so I'd advise you to update to our 2.3.7 one.

Of course I tried it in IPython console, thus I will update and retry.

@grgsolymosi
Copy link
Author

@ccordoba12
Update: After the updating to 2.3.7:

Traceback (most recent call last):

  File "<ipython-input-5-0b30bf70dda7>", line 1, in <module>
    numpy.sum([1,2,3])

NameError: name 'numpy' is not defined

@ccordoba12
Copy link
Member

I'll check out. A couple of questions:

  1. What operating system are you working on?
  2. What's your Python version?

@grgsolymosi
Copy link
Author

@ccordoba12
Sorry for the insufficient info.

  1. Ubuntu 14.04 LTS 64-bit
  2. Python 2.7.10

@grgsolymosi
Copy link
Author

@ccordoba12
UPDATE: Thank you, spyder reinstall + numpy,matplotlib reinstall solved the problem
Thank you!

@ccordoba12
Copy link
Member

Super!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants