Sublime Forum

Running a Python Program on a mac with Sublime Text

#1

I know this can be done - Indeed, I have followed instructions from people who claim “This is the way to do it”. However I can’t.
I can enter a Python program in this editor which I am coming to love, but Cmd B runs it - and any input request just returns to the text. "Print(“Hello World”) or whatever works fine.

Using MacBook Pro - 10.12.4 (Sierra) and Sublime Text 3

I didn’t used to think I was technically inept - But now I admit it. :frowning:

Help please?

0 Likes

#2

This has come up many times. Sublime Text does not accept input, or does not write the entry to stdout (I forget which).You will have to use the extension SublimeREPL for programs that require input. There may be other ways, but this one works.

0 Likes

#3

Thank you, @Jackeroo. That is what I have been trying, without success.

0 Likes

#4

It works OK for me ( I use Windows, but it should work on a Mac as well). We would need more information from you, e.g. what you tried, and the result.
Try uninstalling and re-installing SublimeREPL.

0 Likes

#5

Thanks, @Jackeroo. I finally got time to re-try and it seems OK, though I need to re-read the instructions - Currently works with Tools > SublimeREPL > Python > Python Run Current File. I guess there is a shortcut :slightly_smiling:

0 Likes

#6

Cmd B - Got it!

0 Likes