-
-
Save gizemabali/af31713ab9f24356c2b6c330d14121fd to your computer and use it in GitHub Desktop.
Prepare Atom for intelligent Python development
This file contains hidden or 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
# set python3 as a default python on Ubuntu | |
# type | |
sudo gedit .bash_aliases | |
# then write the following to file | |
alias python=python3 | |
or | |
alias python='/usr/bin/python3' | |
# close current terminal and open new one | |
# now you should see python3 when typing python on the terminal | |
### NEW VERSION OF ATOM ### | |
# download the newest version of Atom | |
# go to https://atom.io/ | |
# download .deb | |
# open it with software app and install | |
### AI AUTOCOMPLETE ### | |
# now paste the following command to the terminal | |
# and install Kite - AI Autocomplete for Linux | |
bash -c "$(wget -q -O - https://linux.kite.com/dls/linux/current)" | |
### SMART-IDE ### | |
# now install python-language-server | |
python -m pip install 'python-language-server[all]' | |
# then install atom-ide for python | |
apm install atom-ide-ui | |
apm install ide-python | |
# if not working | |
pip install python-language-server # source https://pypi.org/project/python-language-server/ | |
# with python-language-server, YOU CAN FORMAT CODE, CALL METHOD/CLASS REFERANCES(CODE TREE), and etc. | |
### SYNTAX CHECKER ### | |
# install linter-flake8 | |
apm install linter-flake8 | |
# install linter-pyflakes | |
# open Preferences > install > then type linker-pyflakes and install | |
### PYTHON DEBUGGER ### | |
# debug python | |
# NOT NEED IT #### open Preferences > install > then type python-debugger and install | |
# then write the following to the terminal | |
apm install atom-ide-debugger-python | |
### PYTHON RUNNER ### | |
# run python inside Atom editor | |
# use script plugin https://atom.io/packages/script | |
# open Preferences > install > then type script and install | |
### GUI ### | |
# install atom-material-ui to have more user comfort interface | |
apm install atom-material-ui | |
# then open Edit > Preferences > Themes > UI Theme, choose Atom Material | |
# then open Edit > Preferences > Themes > Syntax Theme > Atom Light | |
### GUI STYLE ### | |
# change styles.less | |
// style the background color of the tree view | |
.tree-view { | |
background-color: whitesmoke; | |
} | |
// style the background and foreground colors on the atom-text-editor-element itself | |
atom-text-editor { | |
// color: white; | |
// background-color: hsl(180, 24%, 12%); | |
background-color: #fffffe; | |
} | |
// style UI elements inside atom-text-editor | |
atom-text-editor .cursor { | |
// border-color: red; | |
} | |
### FILE ICONS ### | |
## add atom-file-icons package | |
# open Preferences > install > then type atom-file-icons and install | |
### CODE DOCUMENTS ### | |
# to generate code documents run on the terminal | |
apm install docblock-python | |
### PYTHON FORMATTER ### | |
# to have more comfortable formatter, install python-black | |
# but first you should install black as dependency | |
python3.6 -m pip install black | |
# then | |
# open Preferences > install > then type python-black and install | |
### FILE-CHECKER ### | |
apm install file-watcher | |
### GIT-CONTROL ### | |
# more complext git-control plugin | |
# open Preferences > install > then type git-control and install | |
### user runner ### | |
CTRL + SHIFT + ALT + O --> creates a new script for running | |
after it | |
CTRL + SHIFT + ALT + B --> to run script again |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment