Digressions of a research engineer

Setting Up Emacs as Python Development Environment.

I have recently started to investigate a project using Python as its
main language. Since I have become found of both flycheck and
company-mode (especially using irony-mode), I wanted to enrich my
configuration from my Emacs’ prolusion to take advandantage of
on-the-fly checking and auto-completion. Here is how to do so in a
minimalistic manner.

First of all, for the embedded python interpreter to behave as
excpected, you need to have set up some environment variables
considering locale in either your ~/.bashrc or ~/.bash_profile,
whether your or working on Linux on MacOS.

Note that the first step to get python’s jedi server running is to run:

1

M-x jedi:install-server

And that this requires virtualenv to be installed and referred by
your $PATH variable.

I installed it using my system wide python install’s pip (via brew
install python), which implies to be careful when using conda
virtual environments that come together with their own python
installation by using source activate which alters your PATH
environment variable. Not to mention that this overrides MacOS’s
default python installation.