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

TPI: Launch VS Code native REPL from embedded terminal link #24747

Closed
3 tasks done
anthonykim1 opened this issue Jan 27, 2025 · 2 comments
Closed
3 tasks done

TPI: Launch VS Code native REPL from embedded terminal link #24747

anthonykim1 opened this issue Jan 27, 2025 · 2 comments

Comments

@anthonykim1
Copy link

anthonykim1 commented Jan 27, 2025

Refs: #24270 (comment)

Complexity: 2

Create Issue


Thank you in advance for testing.

Background Information

VS Code Native REPL is an editor based Python REPL that you can use via setting.
Easiest way to launch the Python VS Code Native REPL is via shift+entering in your Python file, or via command palette Python: Start Native Python REPL

This month's addition was to ensure Native REPL gets increased visibility from users who may only be used to Python REPL in terminal experience (The REPL in your terminal that starts with >>>). So I have added a line of clickable text that should show up if you launch your Python.


Setup & Testing:

  1. Make sure you have python.terminal.shellIntegration.enabled and havepython.REPL.sendToNativeREPL DISabled in the beginning.
  2. Launch Python REPL in Terminal (Feel free to launch via typing python in your terminal, shift+enter from Python file, use command palette)
  3. Ensure that you get a clickable link depending on your OS (mac would say CMD click, whereas windows and Linux would say ctrl click to launch VS Code Native REPL) Such as:
Image
  1. Make sure clicking on that link lead to launch of Native REPL and you can interactively run your Python code in the Native REPL.
@karthiknadig karthiknadig changed the title TPI) Launch VS Code native REPL from embedded terminal link TPI: Launch VS Code native REPL from embedded terminal link Jan 27, 2025
@rzhao271 rzhao271 added this to the January 2025 milestone Jan 27, 2025
@rebornix
Copy link
Member

This is very nice
image

@rebornix
Copy link
Member

The only challenge I ran into is it requires reload to see the change.

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

No branches or pull requests

6 participants