Sublime Forum

Executing multiline python in the python console

#1

Hi, is there any way to execute multiline python in the Sublime Text 2 console?

A trivial example from the python prompt in terminal:

>>> if (True): ... print "cool" ... cool

When run in the python console (ctrl+`) in Sublime Text 2:

>>> if (True): File "<string>", line 1 if(True): ^ SyntaxError: unexpected EOF while parsing

Any guidance is much appreciated. Thank you!

0 Likes

#2

This is certainly an issue.

0 Likes

#3

maybe use the sublimeREPL package? it displays a REPL on a split view, but it may do for what you need it

1 Like