Questions tagged [elpy]

Elpy is an Emacs package to bring powerful Python editing to Emacs. It combines a number of other packages, both written in Emacs Lisp as well as Python.

Elpy is an package to bring powerful editing to Emacs. It combines a number of other packages, both written in Emacs as well as Python.

Resources:

64 questions
17
votes
3 answers

How to Disable Emacs elpy Vertical Guide Lines for Indentation?

I am setting Emacs for python development. So I installed elpy. But I do not like vertical guide lines for indentation. How can I disable it or change its color?
ghchoi
  • 4,812
  • 4
  • 30
  • 53
14
votes
2 answers

flake8 not honoring global configuration. elpy

I am new to emacs & trying to use it for python programming. I have installed elpy & everything is working fine except one thing - I am getting lot of warnings, errors like E401, E402, E501 etc. All are in scary red colors. After researching little…
pokiri
  • 141
  • 1
  • 4
12
votes
1 answer

Flake8 Attribute Error: 'module' object has no attribute 'normalize_paths'

Here is my output of flake8 during validation: Traceback (most recent call last): File "/usr/local/bin/flake8", line 11, in sys.exit(main()) File "/usr/local/lib/python2.7/dist-packages/flake8/main.py", line 25, in main …
user6040992
9
votes
2 answers

How to connect Emacs' Elpy in-buffer python interpreter to docker container?

I am getting started working on a Django app that will run within a Docker container. I would like to be able to use interactive python from within Emacs which executes the code within the context of the Docker container and the Django app.…
Kurt Wheeler
  • 419
  • 3
  • 12
5
votes
2 answers

emacs elpy/jedi code completion: popup window not working properly

I am using elpy/jedi for code completion. As you can see in the images, when the popup opens is broken. It looks like two different windows are open at the same time (could the second one be auto-complete ???). The one is python suggestions and the…
George B.
  • 565
  • 7
  • 19
4
votes
2 answers

Setting up Emacs Elpy with Poetry

How can I configure Elpy to use dev dependencies like Black, Jedi, and flake8 that are installed in a Poetry project virtual environment rather than those that are installed systemwide?
jidicula
  • 3,454
  • 1
  • 17
  • 38
4
votes
1 answer

Setting up Emacs to run python using elpy

I recently downloaded Emacs 25.2 with the dependencies on Windows 10. I'm attempting to run python script using elpy. I created an init file including - (require 'package) (add-to-list 'package-archives '("melpa" .…
Kyle
  • 81
  • 7
4
votes
1 answer

Flymake config error while opening python file but correctly setup flake

When I'm opening a python file in emacs I get the following error message: Flymake: Configuration error has occured while running (flake8 >..../xyz_flymake.py). Flymake will be switched OFF. But on the other hand it seems I've configured all the…
math
  • 1,868
  • 4
  • 26
  • 60
3
votes
0 answers

Maintaining Elpy RPC virtualenv

Is the user supposed to maintain Elpy's RPC virtualenv (i.e. updating packages) or does Elpy handle that automatically? On several occasions I've had to do elpy-rpc-reinstall-virtualenv to solve bizarre issues like completion not working (doing M-x…
sluque
  • 495
  • 4
  • 12
3
votes
0 answers

Elpy initializing and working as intended, except for the error highlighting feature

So I am new to emacs, just enabled elpy along with others, after creating init.el as follows: ;; .emacs.d/init.el ;; =================================== ;; MELPA Package Support ;; =================================== ;; Enables basic packaging…
computronium
  • 445
  • 2
  • 11
3
votes
1 answer

emacs python Elpy auto-complete not working for all

Using Mac OSC 10.13.4, emacs 25.3 (9.0), Python3 I could have some cases of Elpy autocompletion to work for python3, but for some reason, not always. For example, numpy. triggers autocompletion, but, pandas. does not. My intuition is that while…
Cy Bu
  • 1,401
  • 2
  • 22
  • 33
3
votes
1 answer

Syntax error highlight for valid syntax - Python 3.6

Below is the elpy-config, Elpy Configuration Virtualenv........: None RPC Python........: 3.6.1 (/usr/bin/python3.6) Interactive Python: python3.6 (/usr/bin/python3.6) Emacs.............: 25.2.1 Elpy..............: 1.15.1 Jedi..............:…
overexchange
  • 15,768
  • 30
  • 152
  • 347
3
votes
0 answers

Setting up Emacs as Python editor

I have installed the elpy going through this tutorial and the elpy site. My problem is when i run M-x elpy-config i get the following page opened up: Elpy Configuration Virtualenv........: None RPC Python........: 2.7.6…
user4813927
3
votes
1 answer

Emacs Python "elpy" send code to interpreter

I have "elpy / jedi" installed on Emacs. And using the customization provided by DJJ I can now use C-c C-RET to send an individual line to python interpreter. Below is the customization (defun my-python-line () (interactive) (save-excursion …
datafig
  • 305
  • 1
  • 8
2
votes
0 answers

elpy-goto-definition and virtualenv

I am having some strange problem regarding elpy-goto-definition (and some other features) and the use of virtualenvs. Basically I have two different virtualenvs, in one of them elpy-goto-definition works as expected. If I change to the other…
pgaluzio
  • 168
  • 2
  • 6
1
2 3 4 5