Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto complete modules in new PyREPL #121717

Open
gitwipo opened this issue Jul 13, 2024 · 0 comments
Open

Auto complete modules in new PyREPL #121717

gitwipo opened this issue Jul 13, 2024 · 0 comments
Labels
topic-repl Related to the interactive shell type-feature A feature request or enhancement

Comments

@gitwipo
Copy link

gitwipo commented Jul 13, 2024

Feature or enhancement

Proposal:

Using the new PyREPL in Python 3.14.0a0 does not auto complete for module imports.

I think adding auto completion for the import and from statement would greatly benefit the experience when using the REPL for quickly testing out concept and ideas in python. It will also improve the general workflow.

There is an implementation for import and from package, module auto completion in ipython:
IPython/Core/completerlib/module_completion(line)

I discussed this feature idea with Łukasz Langa at EuroPython 2024 Sprint event. He pointed me to some caveats and issue that should be considered:

  • We might need to try import to get a list of all available modules and packages. This might result in undesired side effects.

I will try to make a draft Pull Request implementing a sensible solution.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

I have discussed this feature at the EuroPython 2024 sprint event with Łukasz Langa.

@gitwipo gitwipo added the type-feature A feature request or enhancement label Jul 13, 2024
@Eclips4 Eclips4 added the topic-repl Related to the interactive shell label Jul 13, 2024
@hugovk hugovk changed the title Auto complete modules in new PYREPL Auto complete modules in new PyREPL Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-repl Related to the interactive shell type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants