Questions tagged [elpy]

Elpy is an Emacs package to bring powerful Python editing to Emacs. It combines a number of other packages, 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, written in Emacs as well as Python.

Resources:

130 questions
39
votes
3 answers

How to set up elpy to use python3?

When setting up my emacs for a new work environment, I am unable to get the elpy configuration to correctly use python 3. I have installed all of the required packages in /usr/local/bin and have installed them using python3. Right now, when I run…
adam
  • 491
  • 1
  • 4
  • 3
10
votes
3 answers

How can I defer loading elpy using use-package?

I've been updating all my use-package calls now that :idle is no longer a decent way to defer stuff. At the moment one of the biggest hits on my load time is elpy which loads a whole bunch of additional modules. At the moment my invocation is rather…
stsquad
  • 4,626
  • 28
  • 45
8
votes
1 answer

flymake : How can I modify/ignore syntax and styling rules?

I'm using elpy to code in Python, along with flymake to help with style/syntax checking. The problem being that I have my habit, and I like to sometimes put 2 blank lines between methods of the same class, which inevitably triggers the following…
m.raynal
  • 257
  • 3
  • 9
8
votes
1 answer

Autocompletion using company in org src buffer?

I can't seem to get completion when editing an org-babel source code block. Elpy and company-mode both appear to be enabled minor modes for the buffer, but no completion candidates appear as they do when I am editing a .py file. Does this have…
7
votes
0 answers

xref unsuccessful in python buffers: "no definition found"

The command xref-find-definitions is no longer working for me in Python buffers (with elpy-mode enabled. Its companions, such as xref-find-references, are also not working in Python buffers. Specifically, when I press M-. I get No definition found…
bashfuloctopus
  • 203
  • 1
  • 6
7
votes
1 answer

How to customize the line character length in elpy?

I am using elpy for my Python development, but I would like to set the per-line character limit to 120 instead of the default 80 used by PEP8. Any suggestions on how I can do this? Even better, it would be great if I can customize this setting on a…
modulitos
  • 2,432
  • 1
  • 18
  • 36
7
votes
4 answers

Function to restart python console

I wrote a very simple function to properly restart ipython console with elpy when evaluating the buffer or region: (defun my-restart-python-console () "Restart python console before evaluate buffer or region to avoid various uncanny conflicts,…
atevm
  • 928
  • 7
  • 16
6
votes
1 answer

elpy error in process sentinel

I've gone a long way to get emacs set up at my company. At home I'm using Emacs for many years on Linux. However, at work on Windows I'm struggling a bit getting it functioning smoothly. When use Emacs to code in python via elpy I get the following…
swissy
  • 77
  • 7
6
votes
3 answers

Elpy doesn't recognize I have virtualenv installed

I am trying to get started with elpy but any python file I open elpy will complain and say eldoc error: (error Elpy necessitates the ’virtualenv’ python package, please install it with ‘pip install virtualenv‘) Even if I am editing files in a…
alltrue
  • 161
  • 1
  • 2
6
votes
6 answers

How to start python shell in appropriate working directory?

If I am editing a python file, and start a python shell using elpy-shell-switch-to-shell the process appears to set the working directory as the containing directory of the file. However, the file itself is in a subfolder of a git repo. So, I would…
cammil
  • 509
  • 3
  • 12
6
votes
1 answer

Ipython completion in elpy

My elpy uses ipython as the interactive interpreter. It does not, however, emulate ipython's history-informed autocomplete feature (for lack of a better term). That is: within an ipython session launched from the terminal, if you want to execute a…
MathManM
  • 171
  • 3
6
votes
2 answers

how to remove the red underline

Occasionally I have this ugly red underline in my python code. It seems not related to any flymake error/warnings. Does anyone know why it shows and how it can be removed? Thanks! I am using latest elpy and emacs (24.4) on Mac OSX 10.9 The problem…
RNA
  • 368
  • 2
  • 10
5
votes
1 answer

Annoying "error in process filter: Overlapping strings detected"

When editing python code with elpy, if I type a single or double quote while writing a new line of code (i.e. adding or changing a line in existing code), the UI freezes momentarily, make the bell sound, and the minibuffer shows "error in process…
Paul Coccoli
  • 201
  • 1
  • 6
5
votes
1 answer

Any equivalent of R+ESS for python?

I do a lot of R coding on Emacs – on Windows – using the wonderful ESS package. What I particularly like is that I can: start an R session, and then send lines or regions of the script I'm working on to that session send the whole script to be…
pglpm
  • 265
  • 1
  • 10
5
votes
0 answers

Code Folding in ELPY Not Working

I used several IDEs for Python. I like Spyder, but I have have been a pretty obsessive Emacs user for a LONG time. I install ELPY. It works very well for my needs. However, I cannot get code folding to work. Whenever I click on anything and…
1
2 3
8 9