Last active
January 29, 2018 18:25
-
-
Save vekio/c9a3b24ad322b0655033fc3bc301f32a to your computer and use it in GitHub Desktop.
SublimeText3 build for Anaconda (python2.7.13) - Two options: normal and external console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
#Go to sublime -> Tools -> Build System -> New Build System | |
#Im using LinuxMint18 with mate desktop so mine will be like this: | |
{ | |
"cmd": ["$HOME/anaconda2/bin/python", "-u", "$file"], | |
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", | |
"working_dir": "$file_dir", | |
"selector": "source.python", | |
"variants": | |
[ | |
{ | |
"name": "Run", | |
"shell": true, | |
"cmd": ["mate-terminal -e 'bash -c \"$HOME/anaconda2/bin/python -u $file;echo;echo Press ENTER to exit; read line\"'"],"shell": true | |
} | |
] | |
} | |
#now save the file as anaconda2.sublime-build as example | |
#and select it: sublime -> Tools -> Build System -> anaconda2 | |
#now use Crtl+B to build and Crtl+Shift+B change options |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment