Ask Your Question
0

autocomplete doesn't work

asked 2017-07-31 05:28:00 -0500

Louis Liu gravatar image

updated 2019-03-13 09:42:37 -0500

Hi expert,   

I try below codes, and autocomplete doesn't work.

import matplotlib.pyplot as plt
fig = plt.figure()
fig.add_subplot(2,2,1)

here in the last line, when I type fig.add , wing ide doesn't show the hint for autocompletion (expect it give hint to show add_subplot).

could you please help to comment?

by the way, I use Anaconda 4.4.0 64bits windows. (the project setting is Python Executable : D:\Software\Anaconda2\pythonPython Path: D:\Software\Anaconda2)

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2017-07-31 11:03:00 -0500

In this case Wing's static analyzer is unable to determine the return type of plt.figure() and can't offer autocomplete suggestions.  An option in cases like this is to run to a breakpoint and then add code.  When a debug process is a active, Wing will inspect the runtime state of the debug process and use this information to determine the type of fig.More information on helping Wing analyze code is in the manual at https://wingware.com/doc/edit/helping-wing-analyze-code

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2017-07-31 05:28:00 -0500

Seen: 312 times

Last updated: Mar 07