python - EOF error sublime? and REPL menu shortener? -
i have had issue sublime text editor 2 python 3. have tried repl , far can tell not work unless go tools>sublimerepl>python>python-run. length of menus annoying when trying test small script need test multiple times due small errors, asking way click ctrl+b or (like in idle) f5. happy helpful answers, thanks. , idea start using idle though don't colours ( colours reason use sublime :)
p.s. sorry terrible question title, i'm terrible @ whole articulating thing.
p.s (more) when doing ctrl+b eof error after having installed sublimerepl
here how run .py file in repl using sublimerepl:
- go preference -> key bindings - user, add following script in file , save
{ "keys": ["f5"], "command": "repl_open", "caption": "python", "mnemonic": "p", "args": { "type": "subprocess", "encoding": "utf8", "cmd": ["python", "-i", "-u", "$file"], "cwd": "$file_path", "syntax": "packages/python/python.tmlanguage", "external_id": "python" } }
the downside approach everytime run code, new repl tab opened. use 2 row layout (alt+shift+cmd+2). put .py file on top row , repl windows on bottom row.
hope helps.
Comments
Post a Comment