Skip to content

Instantly share code, notes, and snippets.

@vekio
Last active January 29, 2018 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vekio/c9a3b24ad322b0655033fc3bc301f32a to your computer and use it in GitHub Desktop.
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
#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