Prepare Python development environment with Atom

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.

environment

Since anaconda is used, it is assumed that jupyter notebook, pep8, and flake8 have already been installed.

Package to introduce

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>

Atom main unit environment settings

I haven't messed with the parts that aren't shown.

Easy to stumble setting

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

Prepare Python development environment with Atom
Prepare python3 environment with Docker
Prepare your first Python development environment
Prepare the development environment with anyenv
Prepare Python development environment with Mac + Windows + VisualStudio Code (Windows version)
Prepare Python development environment with Mac + Windows + VisualStudio Code (Mac version)
[Development environment] Python with Xcode [With screen transition]
How to prepare Python development environment [Mac]
Python development environment construction
Python programming with Atom
About Python development environment
Python environment with docker-compose
python2.7 development environment construction
Development environment in Python
Virtual environment with Python 3.6
Introduction to Python Let's prepare the development environment
Prepare the execution environment of Python3 with Docker
Build Python development environment with Visual Studio Code
[Python] Build a Django development environment with Docker
Get a quick Python development environment with Poetry
Install Python environment with Anaconda
Manage python environment with virtualenv
Build python3 environment with ubuntu 16.04
Build python environment with direnv
Organize your Python development environment
[ev3dev × Python] Build ev3dev development environment
[For organizing] Python development environment
[Day 1] Prepare Django's development environment
Virtualize (isolate) IBM i python development environment with chroot
Build a machine learning application development environment with Python
Python development environment with Windows + Anaconda3 + Visual Studio Code
QGIS3 Python plugin development environment construction with VSCode (macOS)
Manage Python runtime packages and development environment packages with Poetry
Python development environment with Windows + Python + PipEnv + Visual Studio Code
Install Ubuntu 20.04 with GUI and prepare the development environment
Set up a Python development environment with Sublime Text 2
Prepare pipenv environment with amazon Linux 2
Unify the environment of the Python development team starting with Poetry
Set up a Python development environment with Visual Studio Code
Build python virtual environment with virtualenv
Setup modern Python environment with Homebrew
Build Mysql + Python environment with docker
Create a virtual environment with Python!
Video cannot be loaded with Spyder in Python development environment
[Python3] Development environment construction << Windows edition >>
Building a virtual environment with Python 3
Python development environment options for May 2020
Python development environment construction on macOS
Othello game development made with Python
Vim + Python development environment setting memo
Emacs settings for Python development environment
How to build a python2.7 series development environment with Vagrant
Create a simple Python development environment with VSCode & Docker Desktop
Python3 environment construction with pyenv-virtualenv (CentOS 7.3)
How to get into the python development environment with Vagrant
Checking the NAOqi Python development environment
Until dealing with python in Atom
pytorch @ python3.8 environment construction with pipenv
Rebuild Django's development environment with Docker! !! !! !!
Application development with Docker + Python + Flask
Prepare the environment for Atom for Pythonista