Skip to content

TPI: Disable PyREPL for REPL in terminal #25224

@anthonykim1

Description

@anthonykim1

Refs: #25164

Complexity: 3

Create Issue


Thank you in advance for testing.

Background Information

PyREPL is a new REPL from cpython, that became the "default" REPL starting with Python 3.13.
This has introduced considerable number of issues for VS Code , and non-VS Code users, in terms of how people run their Python code, interact with REPL in terminal.

Relevant issues filed on VS Code Python repository: #24256 #25043

We are disabling PyREPL for now, hoping to bring back the smoother code execution flow from before.

When I say smoother code execution flow, I'm referring to users pressing shift+enter and that being sufficient to run user's code, rather than requiring an extra, or multiple presses of enter in the REPL in order to run their code. We also want to prevent people from running in undesired and unexpected indentation error at all cost.


Setup & Testing:

  1. Install pre-release version of Python extension
  2. Please have Python version that is below 3.12 AND also Python version that is equal to or above 3.13
  3. Have Python file of your choice with Python code (feel free to have different elements such as a dictionary, class, method, simple print statement, loops)
  4. Shift+enter to execute different segment of your Python code.
  5. Toggle setting python.REPL.sendToNativeREPL on/off and try running code in both REPL in terminal, Native REPL.
  6. Observe you don't see any weird characters or weird indentation error in the terminal or the Native REPL.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions