Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Smart send cell for VS Code Python Native REPL #24970

Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
@amccaugh

Description

@amccaugh
Issue body actions

Right now, the Python native REPL can operate quite well with the Python: Run Selection/Line in Native Python REPL "smart send" feature. However, it would be very convenient to run larger blocks of code without having to manually select it. Smart send can do a bit of that -- it can run an entire for loop block, for instance -- but often when doing data science tasks you might need to, for example, run several for loop blocks and several lines of code. In those instances, to use the native REPL you need to manually select exactly those lines, and gives you no way of easy running multiple large blocks like that.

What I would propose is the simple adoption of the de-facto standard of using "cells" demarcated by #%% or # %% currently in use by Python tools like Jupyter or Spyder, as described here https://code.visualstudio.com/docs/python/jupyter-support-py . It would require adding additiona keyboard shortcuts of:

  • Python: Run Cell in Native Python REPL
  • Python: Run Cell and Advance in Native Python REPL

Metadata

Metadata

Assignees

Labels

area-replinfo-neededIssue requires more information from posterIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.