Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 2 - running selected python code in the interpreter

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:

  1. select a few lines of code
  2. hit a shortcut, which will run the selected code inside the interpreter
like image 920
Andrej Mikulik Avatar asked Nov 21 '12 14:11

Andrej Mikulik


1 Answers

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

like image 56
chespinoza Avatar answered Sep 25 '22 13:09

chespinoza