by vnpc1 on 1/28/20, 11:11 AM with 1 comments
I would like a Python setup a la RStudio. This means that:
- it works with unmodified plain text files - I don't want to use notebooks and I don't want cell magic (#%%) in my scripts
- at any point I can run a keyboard shortcut which executes the current line* of code
- if the cursor is on a part of a code block like the top line of a function definition or an if statement, the REPL is smart enough to figure out that I want to run the entire block of code
- after running, the cursor moves to the next line or to the line after the block that was just executed
- selecting multiple lines will obviously run all of them
- I don't need to insert an empty line at the end each block of code that I want to run (this is a problem with VSCode's "Send to terminal" option)
- selecting multiple lines allows you to run all of them of course
- the Python session stays live and can be inspected after the code finishes running
Open to suggestions about any editor/IDE/config file that can do this.
by a-saleh on 1/28/20, 8:43 PM