View previous topic :: View next topic |
Author |
Message |
jagdpanther l33t
Joined: 22 Nov 2003 Posts: 756
|
Posted: Sat Aug 10, 2024 7:11 pm Post subject: ipython tab completion of 3rd party module issues |
|
|
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.
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 |
|
|
jagdpanther l33t
Joined: 22 Nov 2003 Posts: 756
|
Posted: Sat Sep 28, 2024 5:10 pm Post subject: |
|
|
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)
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 |
|
|
|