SublimeREPL: Python - current RUN file

With the python script that is currently open in SublimeText, I select:

Tools> SublimeREPL> Python> RUN Current File

Sublime executes the script in a new interactive REPL [python] window (this window is still inside Sublime).

After python script sublime types completes:

Repl closed

Now I can start typing python commands into this interactive window under the Repl Closed message . But when I press Enter, the editor just jumps to a new line when I expect it to print the line I just printed. Please advise which key (if any) should be used to execute the entered command.

+4
source share
1 answer

First go to Tools -> SublimeREPL -> Python -> Pythonto launch the new Python REPL. You can then use the commands in Tools -> SublimeREPL -> Eval in REPLand Transfer to REPLto transfer and / or evaluate code fragments in the running interpreter. When this code is executed, the REPL remains open, allowing you to enter new commands as you expected.

+7
source

All Articles