Having issues with attribute autofills

38 views
Skip to first unread message

Jody Akshay

unread,
May 22, 2025, 2:01:26 PMMay 22
to PyScripter
Hello! First of all, absolutely love PyScripter, it was a my first IDE when I started learning it, been a forever die-hard fan of it.

Main Issue I've been facing primarily is the autofills of functions and attributes. Consider like Class-Objects or like libraries, when we use the dot (.) operator, the attributes don't show up. It's quite annoying, primarily because sometimes it works and some other times it really doesn't.

Would love some help on this!

PyScripter

unread,
May 22, 2025, 2:27:15 PMMay 22
to PyScripter
Hi!

Thank you for long-time support!

Which libraries are you referring to? 
If you are referring to large libraries like pandas, qt, wx, pandas etc. the first step for fast and accurate code copmletion is to install the "stub" files with type information.  See this blog post for details.  Some packages like numpy include these stub files, so no extra step is needed. Pandas on the other hand does not bundle its stubs.  You can install them with Tools, Tools, Install packages with pip  'pandas-stubs'.  Googling for "package_name stubs" will help you find out, whether:
  1. Package stubs are included in the package,
  2. Package stubs are available as a separate package
  3. Stubs are not available
If stubs are not available for a package you use, and code completion with this package is slow or not available the following can help:
Use the menu option Tools, Options, IDE Options, "Language Server" and add your package to "Special packages", which is a comma separated list of package names.

Please let me know whether the above helps.




Jody Akshay

unread,
May 23, 2025, 5:33:47 AMMay 23
to PyScripter
Thanks for that, I'll definitely look into it! 
Though I must mention, it's not just libraries, but things like class-object variables have trouble showing up properly...

Regardless, thank you for the quick reply. Much appreciated!!

PyScripter

unread,
May 23, 2025, 5:35:22 AMMay 23
to PyScripter
It would help if you provide some examples.
Message has been deleted

Jody Akshay

unread,
May 23, 2025, 5:55:28 AMMay 23
to PyScripter
I'm unable to recreate the issue with Class-Objects.

The Image shows my particular issue with other data (This example is the DataFrame from Pandas).

Example.jpg

I hope the image is visible!

PyScripter

unread,
May 23, 2025, 6:41:38 AMMay 23
to PyScripter
Sometimes, code completion fails because it times out, especially with large namespaces like pandas.  Trying a second time usually succeeds.  (Waiting a couple of seconds and pressing Ctrl+Space).
I will have a look on how timeout is handled.

PyScripter

unread,
May 23, 2025, 7:58:31 AMMay 23
to PyScripter
Also try to install the pandas-stubs package using pip.
Alternatively add pandas to  Special packages" (Tools, Options, IDE Options, "Language Server")

You still get a long delay the first time you use code completion, but it works much better after that.

Jody Akshay

unread,
May 23, 2025, 9:47:30 AMMay 23
to PyScripter
Unfortunately I'm unable to recreate the issue with Class-Objects (It's a good thing I suppose). 

Captuer to send to pyscripter.JPGBut as for Data items from Libraries, the issues does still persist

On Friday, 23 May 2025 at 13:35:22 UTC+4 PyScripter wrote:
Reply all
Reply to author
Forward
0 new messages