Ask Your Question

autocomplete doesn't work

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

Louis Liu's avatar

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()

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)


edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

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

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



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

Seen: 1,472 times

Last updated: Mar 07 '19