Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to run python on sublime text

{
    "target": "terminus_exec",
    "cancel": "terminus_cancel_build",
    
    "shell_cmd": "/home/<user>/.python_venvs/general_python/Scripts/python -u "$file"",
    "file_regex": "^[ ]*File "(...*?)", line ([0-9]*)",
    "selector": "source.python",

    "env": {"PYTHONIOENCODING": "utf-8"},

    "variants":
    [
        {
            "name": "Syntax Check",
            "shell_cmd": "/home/<user>/.python_venvs/general_python/Scripts/python -m py_compile "${file}"",
        }
    ]
}
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #run #python #sublime #text
ADD COMMENT
Topic
Name
9+7 =