Ask Your Question

Wingpro failed to do the autocompletion for pint package.

asked 2020-10-04 22:35:19 -0500

hongyi-zhao gravatar image

updated 2020-10-05 08:26:05 -0500


The environment is Ubuntu 20.04 and python 3.8.3, I installed pint package. I find that even in the debug mode, wingpro still fail to do some autocompletion for it. Say, for the following example:

from pint import UnitRegistry
ureg = UnitRegistry()


When I input ureg.e[tab], the eV doesn't appear in the autocompleting list.

Any hints for this problem? Regards,


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-10-05 09:46:54 -0500

Because of how pint is implemented you need to turn on the Debugger > Introspection > Allow Calls in Data Inspection preference in Wing before this will work. That is potentially dangerous so is off by default. In some code bases it could lead to unwanted side effects such as change in program state, or it could lead to crashing of code that is never exercised outside of Wing's debugger doing its inspections. As far I could tell it does seem to work fine with pint, however.

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: 2020-10-04 22:35:19 -0500

Seen: 127 times

Last updated: Oct 05