First time here? Check out the FAQ!

Revision history  [back]

strange 'import pandas as pd' interaction with snippets

Wing Version: Wing Pro 11 (11.0.2.0). The problem apparently does NOT occur with Wing Pro 10.0.10.0. Environment: Windows 11, on two different computers. Tried with interpreters of Python 3.11.9, 3.12.7, and 3.13.3. Note that the problem apparently does NOT occur under Linux Mint 22.1 x86_64.

Description: If I import pandas anywhere in my scripts, using

import pandas as pd

then python snippets (either provided by Wing, or that I've written myself) don't get suggested or autocompleted.

If, instead, I import pandas using a different as-name (alias), then snippet autocompletion/suggestions do work. For example,

import pandas as pan

will allow snippet suggestions/autocompletions to work.

Importing OTHER modules as 'pd' does NOT cause the problem (only tested with some of my own, numpy, and bottleneck; i.e.

import numpy as pd

)

Reinstallation and complete removal, then installation, did not work, even with moving my snippets from a different computer afterward.