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
1
vote
2answers
35 views

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

Elpy cannot access Pydoc documentation for non-builtin packages

I am using Emacs 27.2 on up-to-date Fedora 34 and I installed Elpy from, as I recall, melpa. Python version (in /usr/bin/python) is 3.9.7. I am trying to use C-c C-d to access Python documentation. ...
1
vote
1answer
26 views

Get company to sort single underscore before double underscore, specifically with elpy/python-mode

Edit: this question is a duplicate of this one; I'm leaving it because I got a helpful answer and I didn't find the other one after reasonable amount of searching (so I hope this one being here will ...
0
votes
0answers
13 views

Run current py-file

Maybe I am wrong to think that elpy is or should be able to do that. But can't I just run the current (means: open in current active buffer) py-file? I read about C-c C-c. But this just open a new ...
1
vote
1answer
59 views

How to toggle the *Python* buffer?

When working on python code in elpy, I like to have the python shell open. Often I don't want the *Python* buffer to be visible, especially with several buffers with Python code or long Python files ...
0
votes
0answers
41 views

elpy fails with rpc-venv

When I try to use elpy, I get an error message regarding: Running 'python -m venv /home/acb/.emacs.d/elpy/rpc-venv': Error: Command '['/home/acb/.emacs.d/elpy/rpc-venv/bin/python', '-Im', 'ensurepip',...
0
votes
0answers
26 views

evil/elpy: Auto-fold when opening a file

I am using Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-03-28, modified by Debian with elpy and evil-mode. When I open a py-file I want everything ...
0
votes
0answers
17 views

How to dive into the code-folding topic [duplicate]

I am sorry for such a broad question but I have no other idea. I am using Emacs with evil-mode and elpy (for Python files). Not all keyboard shortcuts known from vim are working. When I ask the search ...
0
votes
0answers
18 views

Autocompletion broken after loading certain module

I'm using Emacs (GNU Emacs 26.1 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 3.22.30) of 2019-05-11) on CentOS 8 and want to use autocompletion when coding with python. Emacs.............: 26.1 ...
0
votes
0answers
38 views

I do not want a TAGS table, flaky elpy-goto-definition

I use elpy for python development, and the command M-., elpy-goto-defintion to follow a function to its definition in a python project is a life-saver. There isn't a TAGS table anywhere in my project, ...
0
votes
0answers
13 views

Emacs python-shell: edit local, execute on server

I am editing a python file on my local machine and executing it on a server. I would like to use python-shell-send-region, python-shell-send-line, python-shell-send-buffer, etc but these functions use ...
0
votes
1answer
34 views

Running elpy-test on a file opened over ssh via tramp

I'm trying to run elpy's C-c C-t to do elpy-test on a python test_x.py file I have opened on a remote machine with TRAMP. Some parameters: There is a python virtual env in the (remote machine's) ...
0
votes
0answers
33 views

Can't use pdb with elpy tests

I have a pytest I am running with: C-c C-t 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
23 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
19 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" @...
4
votes
1answer
90 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 ...
1
vote
0answers
46 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
36 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
212 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
204 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
39 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
118 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
78 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
93 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
16 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
15 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
362 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
109 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
342 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
180 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
1answer
52 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
162 views

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

This is my elpy-config 1Elpy Configuration 2 ...
1
vote
2answers
112 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
75 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
317 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 ...
1
vote
0answers
225 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 ...
3
votes
1answer
1k 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
29 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
42 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
65 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 ...
2
votes
0answers
104 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
274 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
143 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). ...
2
votes
1answer
360 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
44 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
405 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
54 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 ...
3
votes
0answers
542 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
2k 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
1k 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/...