We will raise the settings to treat Atom like a Python integrated development environment.
I don't know how many brews, but I'm stumbling on the linter settings when using pyenv, so I'll explain it.
Since anaconda is used, it is assumed that jupyter notebook, pep8, and flake8 have already been installed.
name | Note |
---|---|
atom-beauty | Cleans up the source code |
autocomplete-paths | Completion of relative path |
autocomplete-python | Python completion |
busy-signal | Libraries required for linter |
file-icons | The file icon looks nice |
highlight-selected | Highlight the selected word |
Hydrogen | Can run jupyter kernel on atom |
intentions | Libraries required for linter |
japanese-menu | Japanese localization of menu |
linter | Static code analysis |
linter-flake8 | Plugin for linter. pep8+ flask |
linter-ui-default | Libraries required for linter |
minimap | Show minimap |
minimap-cursorline | Show the current line on the minimap |
minimap-find-and-replace | Display search / replace words on minimap |
minimap-highlight-selected | Highlight words on minimap |
project-manager | Manages the project |
script | Will execute the file |
Each is installed by installing Preferences or by doing $ apm install hogehoge
in the terminal.
atom-beauty Before
<img src=https://qiita-image-store.s3.amazonaws.com/0/149712/28322fd1-cc35-33cf-fea9-3d6dca351344.png "68747470733a2f2f636c6f75642e67697468756275736572636f6e74656e742e636f6d2f6173736574732f313838353333332f31363534323732372f64623532616463362d343038612d313165362d383234652d3034616564303662643266372e706e67.png width=500>
After
<img src=https://qiita-image-store.s3.amazonaws.com/0/149712/b1f67c83-8ddc-d37b-0545-8b0caff217a3.png "68747470733a2f2f636c6f75642e67697468756275736572636f6e74656e742e636f6d2f6173736574732f313838353333332f31363534323732382f64636163333730302d343038612d313165362d386533352d3963386663343433326564632e706e67.png width=500>
autocomplete-path <img src=https://qiita-image-store.s3.amazonaws.com/0/149712/340b4de0-28dd-cc5b-e203-006a1deef895.gif "687474703a2f2f73312e64697265637475706c6f61642e6e65742f696d616765732f3134303431312f70356b76696665362e676966.gif width=300>
autocomplete-python <img src=https://qiita-image-store.s3.amazonaws.com/0/149712/2557a687-1229-2fdb-37fd-e97e32db95d9.gif "68747470733a2f2f636c6f75642e67697468756275736572636f6e74656e742e636f6d2f6173736574732f3139333836342f31323238383432372f36316665323131342d626130662d313165352d393833322d3938383639313830643837662e676966.gif width=500>
file-icons <img src=https://qiita-image-store.s3.amazonaws.com/0/149712/9d27524d-8a1b-2c76-b41e-80f641b51dd8.png "68747470733a2f2f7261772e67697468756275736572636f6e74656e742e636f6d2f66696c652d69636f6e732f61746f6d2f363731343730366632363865323537313030653033633965623532383139636239376164353730622f707265766965772e706e67.png width=500>
highlight-selected <img src=https://qiita-image-store.s3.amazonaws.com/0/149712/d166b4a1-1c5b-3730-9372-b0d9a625626b.gif "687474703a2f2f692e696d6775722e636f6d2f4335466e7a7a512e676966.gif width=300>
Hydrogen <img src=https://qiita-image-store.s3.amazonaws.com/0/149712/9a729a44-9257-c876-2530-73b7ca710cd7.gif "68747470733a2f2f636c6f75642e67697468756275736572636f6e74656e742e636f6d2f6173736574732f31333238353830382f32303336303838362f37653033653532342d616330332d313165362d393137362d3337363737663232363631392e676966.gif" width=700>
japanese-mene <img src=https://qiita-image-store.s3.amazonaws.com/0/149712/a7729e83-e482-e797-8a7a-c13f509c0056.png "68747470733a2f2f6769746875622e636f6d2f73796f6e2f61746f6d2d6a6170616e6573652d6d656e752f7261772f6d61737465722f73637265656e73686f74332e706e67.png width=500>
linter, linter-flake8, linter-ui-default, busy-signal, intensions <img src=https://qiita-image-store.s3.amazonaws.com/0/149712/812b4850-acdd-33d6-2aac-52f484297ce1.gif "68747470733a2f2f636c6f75642e67697468756275736572636f6e74656e742e636f6d2f6173736574732f343237383131332f383736383438322f35326639373563362d326533662d313165352d383765342d3237633833353966643336632e676966.gif width=500>
minimap, minimap-cursorline, minimap-find-and-replace, minimap-highlight-selected <img src=https://qiita-image-store.s3.amazonaws.com/0/149712/5b4c4df9-b328-36aa-6386-6452a9202056.png "68747470733a2f2f6769746875622e636f6d2f61746f6d2d6d696e696d61702f6d696e696d61702f626c6f622f6d61737465722f7265736f75726365732f73637265656e73686f742e706e673f7261773d74727565.png width=700>
project-manager <img src=https://qiita-image-store.s3.amazonaws.com/0/149712/ad3144eb-4bdd-dbe4-1b75-f322c684653c.gif "project-manager.gif width=700>
I haven't messed with the parts that aren't shown.
linter You must describe the path to flake8.
Open the setting screen with [setting]-[package]-[linter-flake8].
<img src=https://qiita-image-store.s3.amazonaws.com/0/149712/bca2417a-16a1-1ad4-ee69-9b456ee51750.tiff "4.tiff width=700>
Use conda search flake8
to check if frake8 itself is installed.
The path of flake8 is described as ~ / .pyenv / shims / flake8
. For the time being, you can check if it really exists with find ~ / .pyenv -name flake8
.
There is flake8 in anaconda, but it doesn't work unless flake8 on pyenv is specified.
However, simply setting the text type to Python does not start it, but saving it as a Python file (.py) performs code checking.
atom-beauty Requires autopep8 installation.
It will be installed with pip install autopep8
.
Recommended Posts