Submit Code for Interactive Python Sublime Text

How is the selected code sent from the sublime text 2 editor to the interactive console, starting with view > show consolesublime text 2?

+3
source share
1 answer

If you are using Sublime Text 2 for Mac, press "command" + "B" to build. If you are on Windows, press "Ctrl" + "B".

  • Be sure to save the file with the extension .py (so your system will know to build in Python)
  • Also check that your "Tools"> "Create System"> "Automatically"

, . , " " SublimeREPL (https://github.com/wuub/SublimeREPL)

: , (, , , ). Windows 7.

After installing SublimeREPL, go to 'EVAL in REPL', and pick your selection

Here's evaluating just one line of python code

+8

All Articles