1/21/2015

Custom Build System for Python : Sublime-Text-3


# Result ( For Linux ):- 
    # Allow you to run Python Script Directly, Just hit CTRL+B
    # Debug your Python script easily using IPython Terminal/Console.
        # So, You have a Python Script and there is something that you want to check out after completion of Python Script. then you need to Hit SHIFT+CTRL+B keys.
        # So that Sublime runs build+run command, So far we have defined that first we want to execute our script using IPython interactive environment and then we want to take a look at Objects/Variables/results/output generated by our Python script.



# Sublime 3: Custom Build System Script for Python :-


{
    "shell_cmd": "xterm -hold -e python \"$file\"",
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.python, source.py",

    "variants":
    [
        {
            "name": "Run",
            "shell_cmd": "xterm -fg green -hold -e ipython -i \"${file}\""
        }
    ]
}

No comments :