missing intellisense for numpy

Dec 27, 2014 at 6:25 AM
Edited Dec 27, 2014 at 6:26 AM
Hi guys.
First, exceptional product ... a few more bug fixes / improvements and you could become #1 Windows Python IDE. Exceptional.
Second, not sure if possible to resolve but the following shows <No completion> when I press the "." after letter a:

import numpy as np
a=np.array(range(9)).reshape(3,3)
a.

Any advice to resolve issue and / or improve / guide intellisense?

I'm using VS2013 Professional with PTVS 2.1.

Thank you
Coordinator
Jan 2, 2015 at 5:20 PM
This is a known limitation of our current code analyser that we hope to resolve for our next release. There's currently no workaround other than adding the second line here:
a=np.array(range(9)).reshape(3,3)
assert isinstance(a, np.ndarray)
a.
However, note that this has a runtime effect (your program may break if reshape returns a different type) and a minor performance impact, so it isn't always appropriate. Our code analyser will, however, understand that a must be an instance of ndarray (the type normally returned by the np.array function) and will show the correct completions.