19
votes

Is there a command in Eclipse Pydev which allows me to only run a few selected (highlighted) lines of code within a larger script?

If not, is it possible to run multiple lines of code in the PyDev console at once?

2
Doesn't really answer your your question, but I use Python Tools with Visual Studio and you can send selections to interactive prompt using Ctrl-E,E. - tchakravarty
Will console history multiple line execution help you? See the link: pydev.org/manual_adv_interactive_console.html - Dany
I searched for this after briefly using Jupyter Notebook.. can't believe how much productivity this will add! - smcs

2 Answers

19
votes

press CTRL+ALT+ENTER to send the selected lines to the interactive console

13
votes

The solution is selecting and pressing F2, see this question or simply this section of the manual.