Sublime: current file in console python -


in sublime console 1 can execute arbitrary python code. how can select current file buffer execute commands on it? in "on fly" plugin.

edit

i wasn't clear in question. don't want execute python code i'm programming, , i'm aware of sublimerepl. want manipulate text i'm writing (being code or not) python, perhaps using sublime api, search, replace, manipulate text , on in sublime plugin, one-off, you'd elisp in emacs.

your best bet use sublimerepl, available through package control. st2 console runs internal python version 2.6, , can't use third-party modules. sublimerepl runs python interpreter have installed on machine, , acts command-line version. utilizes full syntax highlighting , completion capabilities of st2, , allows transfer bits or whole files of code repl.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -