Skip to content

Auto complete modules in new PyREPL #121717

Closed as duplicate
Closed as duplicate

Description

@moqodow

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.

Activity

  1. changed the title [-]Auto complete modules in new PYREPL[/-] [+]Auto complete modules in new PyREPL[/+] on Jul 14, 2024
  2. Eclips4 commented on May 5, 2025

    @Eclips4
    Member

    @tomasr8 I guess it could be closed now (thanks to you! 🙂)?

  3. tomasr8 commented on May 5, 2025

    @tomasr8
    Member

    I think it can, with the remark that module attributes are not (yet) supported. I would still like to implement those in some way, but this issue calls out modules specifically so I think we can close it. We can open a separate issue for supporting module attributes.

  4. RafaelWO commented on Sep 20, 2025

    @RafaelWO
    Contributor

    FYI: There is an existing issue related to this: #69605

  5. added
    stdlibStandard Library Python modules in the Lib/ directory
    on Sep 20, 2025
  6. StanFromIreland commented on Nov 1, 2025

    @StanFromIreland
    Member

    Closing as there is now #140870 for module attributes specifically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shelltype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions