Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ipython tab completion of 3rd party module issues
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jagdpanther
l33t
l33t


Joined: 22 Nov 2003
Posts: 756

PostPosted: Sat Aug 10, 2024 7:11 pm    Post subject: ipython tab completion of 3rd party module issues Reply with quote

Sometime in the last week or two tab completion of available methods for third party modules stopped working reliably. (It does sometimes work, but not reliably .)
Previously the following would list all the available methods for Pandas Series objects:
Code:
import pandas as pd
pd.Series.<tab>

Now I just get a question mark.
Code:
pd.Series.max<tab>

Sometimes gives me the help for the "max" method and sometimes nothing.

If I have an DataFrame called NationalLeague and one of the columns is named "Team" then:
Code:
NationalLeague.Team.<tab>

does nothing but strangly enough:
Code:
NationalLeague["Team"].<tab>

does list all the Series methods.

I have tried re-emerging iPython and dev-python/jedi (and even tried the "unstable" jedi) but that did not help.
I do see at the end of the dev-python/jedi re-emerge the following which might matter?
Code:
 * QA Notice: setuptools warnings detected:
 *
 *      Package 'jedi.third_party' is absent from the `packages` configuration.
 *      Package 'jedi.third_party.typeshed' is absent from the `packages` configuration.
 *      Package 'jedi.third_party.typeshed.stdlib' is absent from the `packages` configuration.
 *      Package 'jedi.third_party.typeshed.third_party' is absent from the `packages` configuration.
 * Verifying compiled files for python3.12



Any ideas on getting reliable 3rd party tab completion working again in ipython?
Back to top
View user's profile Send private message
jagdpanther
l33t
l33t


Joined: 22 Nov 2003
Posts: 756

PostPosted: Sat Sep 28, 2024 5:10 pm    Post subject: Reply with quote

I still have this tab completion issue, even with the new ipython-8.27.0.
In ipython the following always works (ie. you get all the methods supported by Pandas DataFrame object.)
Code:
import pandas as pd
pd.DataFrame.<tab>

However, the following never works (it did work a week or two before my original post)
Code:
pd.Series.<tab>


I tried reverting to an older and then an "unstable" ipython. Same results.
I tried a different terminal emulator: aterm instead of xterm which I usually run. Same problem.
I tried using much larger xterm windows. This did NOT help with the problem in iPython, but using the default Python CLI (not iPython) a larger window "solved" the issue. Because I can "duplicate" the issue using python CLI (python-3.12.6) perhaps the issue is with Python and not iPython?

Any suggestions?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum