Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyDev: Running code to interactive console

As my problem is quite simple I'll try to make this question simple aswell. The problem I'm having concerns the PyDev interactive console. I can bring up the console just fine without problems, and even use it as an interactive shell, just as I would be able to with IDLE. However, when I try to run my code that I've written in my project module, it won't run to the interactive console, but to the Eclipse default console. The default console displays the program just fine, but since it's not an interactive shell, I can't do anything afterwards.

With that being said, my question is: How do I get my code to run to the PyDev interactive console, and not the Eclipse default one? Thanks in advance!

like image 918
VictorK Avatar asked Nov 26 '16 23:11

VictorK


1 Answers

For making the symbols of the current editor available in the interactive console, use Ctrl+Alt+Enter (which will do a runfile in the interactive console context).

Also, make sure you read: http://www.pydev.org/manual_adv_interactive_console.html

like image 131
Fabio Zadrozny Avatar answered Sep 18 '22 00:09

Fabio Zadrozny