简体   繁体   中英

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM