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

Completion problems about the object of numpy, matplotlib in windows 7 #391

Closed
llcc opened this issue Mar 23, 2014 · 4 comments
Closed

Completion problems about the object of numpy, matplotlib in windows 7 #391

llcc opened this issue Mar 23, 2014 · 4 comments

Comments

@llcc
Copy link

llcc commented Mar 23, 2014

Hi davidhalter,

I have a problem about the completions of numpy and matplotlib in windows 7, whatever ide i use such as emacs and Eclipse, which is:

import matplotlib.pyplot as plt
import numpy as np

arr = np.array([1, 2])
plt.plot(arr) #jedi gives completion to the np and plt.

fig, ax = plt.subplots() 
ax.plot(plt) 
arr.#jedi never gives completion to ax and arr object

So can you give me some hint to solve this problem?

@davidhalter
Copy link
Owner

This is kind of a duplicate with #372.

@llcc
Copy link
Author

llcc commented Mar 23, 2014

So there is not a good solution yet?

@davidhalter
Copy link
Owner

Well see the problem is that with certain complexity there's not always a solution. There will never be. Python is very very hard to understand - sometimes - especially if it also involves compiled c libraries. If you don't know what I mean, try to look up all the types that arr is an instance of. It's not that easy.

However, I do agree that Jedi should really understand this, that's why #372 is labeled as a bug.

@davidhalter
Copy link
Owner

Let's continue the discussion in #372.

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

No branches or pull requests

2 participants