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
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
3
votes
0 answers

elpy tries to make a virtual env, but fails and starts complaining, very much complaining

I have installed elpy tonight, but it seems that it cannot start properly a Python virtualenv, and it's complaining as reported below. First, I installed use-package and elpy from Melpa, and I added, per elpy's manual, (use-package elpy :ensure t …
gboffi
  • 614
  • 4
  • 20
2
votes
0 answers

How can I speed up elpy

I’m using elpy for python development in emacs. Some of the features are indispensable, like ‘C-c C-t’ for running individual tests. However, after maybe an hour of development, my session is very slow—-like 1 full second command between keystrokes…
Mittenchops
  • 329
  • 1
  • 9
2
votes
1 answer

Autocomplete not working

Elpy Configuration Virtualenv........: None RPC Python........: 2.7.10 (/usr/bin/python) Interactive Python: ipython (not found) Emacs.............: 25.2.1 Elpy..............: 1.16.0 Jedi..............: Not found (0.10.2…
M. Al
  • 21
  • 1
  • 2
2
votes
0 answers

Sometimes experiencing heavy load using elpy

I have a couple of times experienced an elpy (Emacs Python development environment) python process using a considerable amount of CPU resources, loading the computer to an extent that I had to kill the python process. This seems to happen if there…
1
vote
2 answers

How to automatically enable `rst-mode` in SciPy documentation via Elpy?

I am currently trying to make Elpy into my ideal Python IDE, and besides inline images in the console, I am mostly there (I don't need much). C-c C-d (M-x elpy-doc) brings up documentation for the object at point when editing a .py file, and after…
ygtozc
  • 53
  • 6
1
vote
0 answers

jedi:goto-definition overjumping the import section

I am using jedi:goto-definition to jump to function definitions. If the function has a definiton under import it first jumps into that and I have to do second jump to the module again. Can it directly jump to the module by over passing the import…
alper
  • 1,370
  • 1
  • 13
  • 35
1
vote
1 answer

How to fix: [Suspicious state from syntax checker python-mypy: Flycheck checker python-mypy returned 2, but its output contained no errors]

I keep having following warning message, even I have the recent version of python-mypy not sure why this warning message is generated; is there any way to fix this: Suspicious state from syntax checker python-mypy: Flycheck checker python-mypy…
alper
  • 1,370
  • 1
  • 13
  • 35
1
vote
3 answers

Elpy can not find flake8 on Windows 10

My elpy package tells me that it can not find the command "flake8" on a Windows 10 machine. Ok, it make a bit sense to me. By default there is no flake8 on Windows 10 installed. I was not aware that elpy uses extern commands for syntax checkig of…
buhtz
  • 729
  • 5
  • 23
1
vote
2 answers

Elpy, autopep8 and line length

I'm struggling to get line length correctly setup under Elpy. I found How to customize the line character length in elpy? and have in the past found flycheck cannot find module for pylint. My configuration looks like (I've tried both autopep8 and…
slackline
  • 335
  • 3
  • 14
0
votes
1 answer

What is the Elpy "autodoc" module and how do I enable it?

In the documentation for Elpy 1.35, near the part about elpy-doc, there is a statment to the effect of If the autodoc module is enabled (not by default) ... What is the autodoc module, and how does one enable it? I cannot find more information…
mhucka
  • 163
  • 7
0
votes
0 answers

How can I figure out why elpy-doc fails to find documentation?

I have Elpy version 1.35.0 in Emacs 28.2. I'm trying to use elpy-doc on functions in modules that my Python program imports. I know that the functions have docstrings (because I wrote those modules), but elpy-doc returns empty results for them. How…
mhucka
  • 163
  • 7
0
votes
1 answer

flake8 in elpy does not recognize per-file-ignores

I'm using the excellent Elpy. I have with a Python project with a .flake8 config file at the top of the project source tree. I have this content in the .flake8 file: [flake8] ignore = E251, E501, E303, E271, E221, E226 per-file-ignores = …
mhucka
  • 163
  • 7
0
votes
2 answers

Using elpy in my dotemacs file

I am trying to use the elpy python package by putting it in my dotemacs file. But, when I fire up an emacs session and type inside the source code frame ( I don't split any frames ), I get the following messages in sequence with the first one going…
mark leeds
  • 113
  • 6
0
votes
0 answers

When elpy-shell-send-region-or-buffer finishes, source buffer closes

And the first thing I do is to reopen the file. elpy-shell-send-region-or-buffer is bound to C-c C-c. This sends the buffer to an ipython buffer. I've set a breakpoint with pdb.set_trace() and it stops there. I use c (continue), with no further…
patfla
  • 11
  • 2
1
2