Sublime Text 2 - running selected python code in the interpreter

interpreter, python, sublimetext2

Solution

There are two choices I think, one can be using PdbSublimeTextSupport, available here: http://pypi.python.org/pypi/PdbSublimeTextSupport

Or you can try SublimeREPL, that can run Python code: https://github.com/wuub/SublimeREPL

Problem

While editing a python script in the Sublime Text editor, I would like to run the script line by line, or block after block in the embedded interpreter. Is there a convenient way how to do that? Perfect way for me would be: - select a few lines of code - hit a shortcut, which will run the selected code inside the interpreter

Original source