Skip to content

Feature Request: Run block and move down in Python text file without selecting block manually #12176

Closed
@kylebarron

Description

@kylebarron

(I have tried to search through issues and have not found any relevant results)

Here's the behavior I'm used to in Atom's Hydrogen (with the added hydrogen-python extension). The only thing I'm pressing is Shift + Enter

Screen.Recording.2022-11-26.at.12.15.00.PM.mov
  1. Shift + Enter first starts the jupyter kernel
  2. Each call to Shift + Enter:
    1. Infers a "block" of code to run in Jupyter, including the current line plus any additional lines that are indented more than the current line
    2. Sends that block of code to Jupyter
    3. Moves cursor down past the block that was run + past any additional whitespace to the next line of Python code

Key points

  • This is not in a notebook with cells, but rather a normal Python text file.
  • I don't have to select the block manually to determine what to run.
  • Moving the cursor down automatically means that I can use a series of only Shift + Enter to run through as much of my file as I'd like
  • This is Python-specific, and so maybe is out of scope for this extension? Is there a Python-specific Jupyter add on somewhere?

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions