Hello I am trying to move from Notepad++ to Sublime. I had a shortcut set up that would go to C:\Python26\python.exe -i "$(FULL_CURRENT_PATH)". That runs my file and then leaves me sitting in python which I always found helpful as I could try new code readily on top of my existing.
Is there a similar feature in Sublime that I am missing? Build is close, but the python command line doesn’t stay open
In order to do something like this in Sublime, you need to use a plugin such as SublimeREPL. The build results pane doesn’t accept user input, so you can only use it to run non-interactive programs.
Thanks. I got it installed but it seems buggy? Occasionally when I hit ctrl+, f it will say REPL Python is not available, even though it is open. The rest of the time it does nothing. What am I missing? I copied all of the settings from Default to User
I must admit that I don’t actually use that plugin; I’m primarily a C developer so I’m not used to that kind of environment in my usual development workflow. As a result I can’t say offhand why it might not be working. There may be other similar plugins that perform a similar task, although this one is the one that seems to be the most recommended (both by it’s popularity on PackageControl and when this question has come up in the past).
It’s also a possibility to create/override the default Python build system to do something (probably) similar to what you were doing in Notepad++. Instead of executing python directly to run the script the build system would need to first open a new terminal window and then execute Python inside of it.
A past thread on how to accomplish this:
For reference, that forum post was referenced recently by someone asking how to accomplish this using Mac OS X (linked here in case someone finds this thread in future while trying to find a similar answer):
For the particular case of Windows, the first thread links to a package called Send to Shell which may be a better fit for what you’re trying to do if the REPL is not working as you want it too.
I am not sure what happened, but I just came back to post the REPL seems to be working now for me. Maybe I got messed up with the short cuts as they are a bit odd - CTRL+, release, then the letter such as f.
Try to llok here enter link description here , not only this article i mean, may help u. Guys gave me a hand couple times while I was starting my own project.