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.

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

Can't use pdb with elpy tests

I have a pytest I am running with: C-c C-c In the line I'd like to debug, I have added: from pytest import set_trace; set_trace() However, while my test runs, it drops the *compilation* buffer into ...
0
votes
0answers
10 views

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 ...
0
votes
0answers
18 views

Report wrong Elpy-Behaviour, but to whom and how?

I'm using emacs to write my python-code and lately I found some wrong behaviour of one of the auto-format-features: Given this wrong code: def doStuff(self, s_database): return ("ASDF" @...
3
votes
1answer
27 views

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 ...
0
votes
0answers
12 views

jedi: Wrong type argument: epc:manager, nil

After installing Ubuntu 20.04 and switch from 3.7 to 3.8 I have started to face with following error. I have tried everything reinstalling removing emacs and re-installing it but I won't able to solve ...
1
vote
0answers
39 views

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 ...
0
votes
1answer
28 views

How to restart elpy if it is not launch?

I am working with python using Emacs 26.3. My goal is to jump to definition of the function and jump back, for that I am using https://github.com/jacktasia/dumb-jump, which runs elpy-goto-definition ...
6
votes
0answers
97 views

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. ...
1
vote
0answers
55 views

elpy-goto-definition doesn't work when jedi:goto-definition does work

After installing a fresh install of emacs on a coworkers machine, I got elpy setup with all the correct packages according to elpy-config but elpy-goto-definition always returns 'No definition found'. ...
0
votes
1answer
29 views

How to disable multiple elpy keybindings?

There are multiple elpy keybindings that I am not using. Is there any way to unbind them? Possible bindings that I want to disable C-c C-t, C-c C-p. I have tried following answer Globally override key ...
0
votes
0answers
84 views

mypy FileNotFoundError: [Errno 2] No such file or directory: '.mypy_cache/3.8/utils.data.json'

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: Try installing a more recent ...
3
votes
0answers
48 views

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 ...
0
votes
1answer
76 views

How can I evaluate a Python buffer, switch to it, see its results, then switch back?

Suppose, we have a buffer with Python code in it. I want to evaluate it, switch to Python buffer and see the results. Then easily switch back to code buffer. I tried the following: (defun my-python-...
0
votes
0answers
10 views

Is there a “variable inspector” in ELPY?

I miss a way to see the list of variables in Elpy (variable inspector/editor). Is this possible at all? Thank you!
0
votes
0answers
14 views

How to restrict `C-c C-e' (elpy-multiedit-python-symbol-at-point) editing to the current buffer?

C-c C-e edits occurrences of the symbol in all Python files of the project. How can I edit the occurrences only in the current buffer? According to the documentation, using C-u C-c C-e edits syntactic ...
1
vote
1answer
127 views

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 ...
0
votes
1answer
39 views

Elpy shell-send-region to a particular named Python buffer

I often open up interactive python sessions particular to the project that I'm working on, and will use M-x rename-buffer to title them *Python[Project1]*, Python[Project2]`, etc. I would like to ...
1
vote
2answers
189 views

Symbol's function definition is void: rx-let

Whenever I try to use elpy, or even just fontlock (with elpy disabled) in a python file, I get the error that rx-let is void. This is what I got from --debug-init: Debugger entered--Lisp error: (void-...
0
votes
2answers
106 views

elpy flymake does not recognize local .pylintrc

I have the following in the project root for my .pylintrc: [FORMAT] # Maximum number of characters on a single line. max-line-length=1000 # String used as indentation unit. This is usually " ...
0
votes
0answers
80 views

Emacs gives `stty: 'standard input': Inappropriate ioctl for device` in ZSH shell

I am running emacs inside ZSH shell. I have current lines in .zshrc file, which I believe affects the emacs behavior it is using shell within: stty eof undef stty sane && stty erase "^H&...
0
votes
1answer
43 views

Realgud to default to my most recent python executable

When I run realgud for python debugging, with: M-x realgud:pdb I see this prompt: Run pdb (like this): python -m pdb /home/username/work/place/scratch.py I'm using a conda environment installed in ./...
0
votes
3answers
128 views

elpy (and evil-mode) do not react on TAB

This is my elpy-config 1Elpy Configuration 2 ...
0
votes
1answer
38 views

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 ...
0
votes
0answers
23 views

How to pass a DEBUG log-level into elpy?

To run my C-c C-t individual tests, I tried the following: '(elpy-test-pytest-runner-command ("py.test", "-vv")) '(elpy-test-runner (quote elpy-test-pytest-runner) (quote "--...
0
votes
0answers
76 views

Emacs-x86_64-10_14 consumes 99,8% CPU on macOS-Catalina

I have installed Emacs.app via brew into macOS Catalina. I have realized that it consumes almost 100% of the CPU. What may be the main cause of this? Which approaches could I take to overcome this ...
0
votes
0answers
19 views

flycheck, elpy and re-displaying corrected python code

I've had Flycheck installed for some time, using flake8. This has worked for some time. When I had errors in a *.py program, they were indicated with markers by flycheck, and after correcting them, ...
0
votes
0answers
46 views

Unable to install ElPy: “eval-buffer: Cannot open load file: No such file or directory, s”

I followed the instructions to install ElPy from source: I cloned the repo to ~/code/elpy and added these to the Emacs initialization file: (add-to-list 'load-path "~/code/elpy") (load "...
1
vote
1answer
183 views

How to set python indent offset to 2 spaces in elpy emacs?

I use elpy package for Python 3 in Emacs. It uses yapf to format a Python buffer. I have tried about everything, setting tab-width to 2 and setting python-indent-offset to 2 but nothing makes it so ...
0
votes
0answers
141 views

Flymake stopped working with elpy…no idea what I did or didn't do [Windows]

I installed elpy, along with jedi, rope and got it to work briefly yesterday after uninstalling python and reinstalling it with anaconda and setting the environment variable to path. I tinkered around ...
1
vote
1answer
581 views

Elpy Configuration…Setting Up a Virtual Environment and Pip Conflic with Conda? Need hand holding

Full disclosure: I installed anaconda and set it to the path variable. After I did this I was able to access elpy-config which I was not able to (see my prior question). I still pretty much have no ...
0
votes
0answers
136 views

Trouble installing elpy (totally newb to both emacs and programming)

I'm having trouble fully installing elpy. I supposedly installed it using emacs' GUI as you can see here. I tried testing whether it works or not by trying to run Eratosthenes's sieve algorithm as ...
0
votes
0answers
12 views

Verbose output of `elpy-test`

I'm running python tests with the python test runner and elpy, per here https://elpy.readthedocs.io/en/latest/ide.html#testing Using the C-c C-t binding. When my tests complete, they say: ============...
0
votes
0answers
24 views

Why Jupyter console sometimes decide to output sometimes don't?

Problem I don't know why my Jupyter console sometimes doesn't output anything. An example is this: Notice that only the first line gets its output. I use C-enter to execute each line. Line 2, 3, 4, ...
1
vote
0answers
36 views

How to run current buffer as python module from project root in Elpy mode?

Take for example I have the following project tree. repo | +-root | +-__init__.py +-__main__.py +-packageA | +-__init__.py +-__main__.py My buffer is currently at root.packageA....
2
votes
1answer
50 views

Python over-indentation warning E127

elpy (or rather flake8 I suppose) complains about a line over-indented on the line 52 (see below image) I tried to change this line's begin but no change. I always use TAB to have the correct ...
1
vote
0answers
70 views

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 ...
2
votes
0answers
247 views

flycheck - elpy - flake8 - ein and .ipynb files

I have set up Emacs (on Mac Catalina) with Elpy to handle Python. I also managed to get Jupyter notebooks (.ipynb files) working with Elpy via Ein. Both .py and .ipynb compile and use Flycheck ...
1
vote
0answers
93 views

Elpy: how to stop the underlying RPC process?

Whenever elpy-mode is activated upon visiting a python file, I see a py.exe executable start, with a subtree of processes. This should be the remote procedure call (thanks @al0 for the explanation). ...
1
vote
1answer
254 views

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 ...
0
votes
1answer
39 views

elpy-goto-definition jump to the center of the terminal window

I was using dumb-jump to go to the location where the identifier at point is defined. When it jumps to the function, jumped function shows up on the middle of the terminal window. => Instead when I ...
1
vote
0answers
303 views

elpy - This feature requires the ‘jedi‘ package to be installed

I am getting following error when I do M-x elpy-goto-definition, even though I have installed jedi. I have followed following answer and this one. Error message: This feature requires the ‘jedi‘ ...
1
vote
1answer
45 views

How to disable hints for certain keywords in python elpy

I enabled elpy mode for python and I get hints when I type a keyword. Also I have yasnippets. Unfortunately, when I type "for" keyword, elpy gives me a useless hint, blocking <tab> key for ...
2
votes
0answers
439 views

Code Folding in ELPY Not Working

Gents, 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 ...
1
vote
2answers
1k views

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 ...
2
votes
2answers
875 views

Set RPC Python when using elpy with virtualenv

I'm having trouble getting my elpy setup to work smoothly. My current config is: Elpy Configuration Virtualenv........: (/home/jeff/Documents/Proj/myenv/bin/) RPC Python........: 3.7.3 (/usr/bin/...
1
vote
1answer
722 views

Python shell warning about readline and completion?

*Warning*: Warning (python): Your ‘python-shell-interpreter’ doesn’t seem to support readline, yet ‘python-shell-completion-native-enable’ was t and "python3" is not part of the ‘python-shell-...
0
votes
1answer
289 views

Elpy Auto Complete is not working at all

I am trying to configure my emacs for python programming. Elpy auto-complete suggestion is not working at all in all instances. Any suggestions? Here is my elpy-config... Elpy Configuration Emacs......
4
votes
3answers
2k views

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 ...
1
vote
1answer
65 views

Give key binding absolute priority [duplicate]

I'd like to use M-<arrows> to move around windows in Emacs gtk, so I have added (windmove-default-keybindings 'meta) to my init.el. However, this is overridden by other modes such as elpy. Is ...
2
votes
0answers
389 views

What are the steps to set up elpy to use the anaconda python distribution on Windows?

I have anaconda installed on Windows (Windows 7), and it is working well in Jupyter. But of course I'd prefer to work in emacs. I have elpy installed in emacs, and it successfully sends commands to ...