This project has moved. For the latest updates, please go here.

missing intellisense for numpy

Dec 27, 2014 at 5:25 AM
Edited Dec 27, 2014 at 5: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

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

I'm using VS2013 Professional with PTVS 2.1.

Thank you
Jan 2, 2015 at 4: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:
assert isinstance(a, np.ndarray)
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.