|
[ |
|
{ |
|
"id": "tools", |
|
"children": |
|
[{ |
|
"caption": "SublimeREPL", |
|
"mnemonic": "r", |
|
"id": "SublimeREPL", |
|
"children": |
|
[ |
|
{ |
|
"caption": "Python", |
|
"id": "Python", |
|
|
|
"children":[ |
|
{ |
|
"command": "repl_open", |
|
"caption": "Python 2.7 - Anaconda", |
|
"id": "repl_python", |
|
"mnemonic": "p", |
|
"args": { |
|
"type": "subprocess", |
|
"encoding": "utf8", |
|
"cmd": ["/anaconda/bin/python2.7", "-i", "-u"], |
|
"cwd": "$file_path", |
|
"syntax": "Packages/Python/Python.tmLanguage", |
|
"external_id": "python", |
|
"extend_env": {"PYTHONIOENCODING": "utf-8"} |
|
} |
|
}, |
|
{ |
|
"command": "repl_open", |
|
"caption": "Python 3.3 - Anaconda", |
|
"id": "repl_python", |
|
"mnemonic": "p", |
|
"args": { |
|
"type": "subprocess", |
|
"encoding": "utf8", |
|
"cmd": ["/anaconda/envs/py3k/bin/python3.3", "-i", "-u"], |
|
"cwd": "$file_path", |
|
"syntax": "Packages/Python/Python.tmLanguage", |
|
"external_id": "python", |
|
"extend_env": {"PYTHONIOENCODING": "utf-8"} |
|
} |
|
}, |
|
{ |
|
"command": "repl_open", |
|
"caption": "IPython 2.7 - Anaconda", |
|
"id": "repl_python_ipython", |
|
"mnemonic": "p", |
|
"args": { |
|
"type": "subprocess", |
|
"encoding": "utf8", |
|
"autocomplete_server": true, |
|
"cmd": ["/anaconda/bin/python2.7", "-u", "${packages}/SublimeREPL/config/Python/ipy_repl.py"], |
|
"cwd": "$file_path", |
|
"syntax": "Packages/Python/Python.tmLanguage", |
|
"external_id": "python", |
|
"extend_env": { |
|
"PYTHONIOENCODING": "utf-8", |
|
"SUBLIMEREPL_EDITOR": "$editor" |
|
} |
|
} |
|
}, |
|
{ |
|
"command": "repl_open", |
|
"caption": "IPython 3.3 - Anaconda", |
|
"id": "repl_python_ipython", |
|
"mnemonic": "p", |
|
"args": { |
|
"type": "subprocess", |
|
"encoding": "utf8", |
|
"autocomplete_server": true, |
|
"cmd": ["/anaconda/envs/py3k/bin/python3.3", "-u", "${packages}/SublimeREPL/config/Python/ipy_repl.py"], |
|
"cwd": "$file_path", |
|
"syntax": "Packages/Python/Python.tmLanguage", |
|
"external_id": "python", |
|
"extend_env": { |
|
"PYTHONIOENCODING": "utf-8", |
|
"SUBLIMEREPL_EDITOR": "$editor" |
|
} |
|
} |
|
} |
|
|
|
] |
|
} |
|
] |
|
}] |
|
} |
|
] |
Hi amarting,
If you are on Windows then you need to change the path to your Python executable to something like this:
"cmd": ["C:/Anaconda/python.exe", "-i", "-u"],