0

I just installed sublime text and start playing with it, using python code. I dabbled with the Python.sublime.build file that contains the commands to run code.

I wanted to use "shell_cmd": "python -i \"$file\"" so that once the script has run, the shell drops into an interactive session that allows me to inspect variables.

However if I do that, I can see the >>> typical of an interactive session and type after it, but the enter command doesn't work. I tried shift enter, or ctrl enter but similarly it is simply adding a line break, instead of of processing what I have typed on the line.

Anyone knows how I could make the interactive python shell work with sublime3?

KARTHIKEYAN.A
  • 18,210
  • 6
  • 124
  • 133
jim jarnac
  • 4,804
  • 11
  • 51
  • 88
  • 1
    The specific answer to your question is that you can't do what you want; when you run a program from within Sublime, the `stdin` of the running process is not connected to anything, so you can't pass it input. You need to run what you're doing externally or use something like SublimeREPL to simulate what you're trying to do. – OdatNurd Jan 01 '18 at 04:54
  • Thx guys, this solved it – jim jarnac Jan 01 '18 at 05:04

0 Answers0