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.

Filter by
Sorted by
Tagged with
0
votes
1answer
11 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
7 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
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
16 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 "...
0
votes
1answer
57 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
30 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
118 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
72 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
7 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
22 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
25 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....
1
vote
1answer
33 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
32 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
175 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
51 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
117 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
23 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
142 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
33 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
313 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 ...
0
votes
0answers
34 views

Python indent closing parentheses for multi-line function

I've discovered some reformatting with Black or Yapf: def responses(self, foo=SuperLongClassnameBar.FOOBAR ) -> List['Foobar']: Using emacs and elpy, it won't indent the closing ...
0
votes
1answer
671 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 ...
1
vote
2answers
301 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
469 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
213 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......
2
votes
3answers
1k 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
56 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
310 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 ...
0
votes
1answer
63 views

How to deselect a symbol selected by `elpy-multiedit-python-symbol-at-point` for renaming?

I wanted to rename a variable, so I selected all its uses by C-c C-e (elpy-multiedit-python-symbol-at-point) and changed its name. How do I deselect it so that changes in one line don't appear in ...
0
votes
0answers
169 views

Unable to call pyvenv-activate from init file

M-x pyvenv-activate <RET> ~/Documents/bitbucket-python-scripts/.env353 <RET> works fine. Elpy Config buffer confirms that. However with the following in ~/.emacs file (require 'package) ...
2
votes
0answers
156 views

Elpy auto-complete gives incomplete suggestions

I am trying to use Elpy for Emacs to write Python programs. The auto-complete feature suggests all attributes of PyQt5 classes, but suggests only a subset of the attributes of instances of these ...
1
vote
0answers
74 views

Associate a buffer with a process

I am using Python with elpy. I am trying to use a Python shell opened on the remote computer using a shell buffer. I can cheat elpy by renaming the shell buffer with Python running in it to *Python*. ...
0
votes
1answer
85 views

Elpy keeps prepending backslash to my python path

I am trying to set my Elpy on my home machine and, so far, everything works except actually running the Python interpreter. I normally launch the interpreter and run code via C-c C-c, but when I do ...
1
vote
1answer
170 views

Autoinsert a python skeleton

I start my python files (.py) with #!/usr/bin/env python3 and sometimes if __name__ == '__main__': somefunc() having done it some hundreds of time manually I decided to automate it in Emacs. (...
2
votes
0answers
132 views

Executing buffer twice in Python 3

I set up an environment to write Python 3 Code in my emacs (25.2.2) using python-mode and Elpy on Ubuntu 18.04. Strangely every time I use Python --> Send --> Execute Buffer the program is executed ...
3
votes
0answers
47 views

xref gets confused by similar class names

If I use evil-jump-to-tag or xref-find-defintions on an inherited class module whose name is the same as a class in my current project, I am taken to the definition in the current project. I would ...
0
votes
0answers
258 views

elpy autocomplete stops working unexpectedly

I've configure emacs to write python code and I love it!:). It works very well but after some situations that I cannot understand the autocomplete stops working on all buffers. If I restart emacs it ...
2
votes
3answers
2k views

Activating a conda environment in emacs

I've got code that needs python 2.7 (and other environments) C:\Users\Me>conda info -e # conda environments: # base * C:\Program Files\Anaconda3 python2 C:\...
3
votes
0answers
744 views

Enhance python lsp-mode with elpy functions and keybindings

I've been using Elpy for a long time and have grown used to many of the default keybindings. I recently decided to give lsp-mode a go to see how it compares. I set it up following this blog and made ...
1
vote
0answers
149 views

Org Mode Python block evaluation cannot print result in the shell session

I have a python source block in org mode as below #+BEGIN_SRC python :session print('hello world') #+END_SRC and I have a Python shell already run, so when i press C-c C-c, the code gets ...
1
vote
1answer
233 views

Why does company autocomplete 1000 to “and”?

When writing python code in Emacs (GNU Emacs 25.1.1 x86_64-pc-linux-gnu), I use company for auto completion. Why does company autocomplete (some) numbers to keywords? Edit: I used M-x company-diag ...
1
vote
1answer
56 views

How to debug collision between elpy and htmlize during org-export

Description Below I include a minimal Emacs init file a minimal org file Attempting to export the org file to HTML (by using C-c C-e h h) results in the error Wrong type argument: processp, nil. A ...
2
votes
0answers
82 views

Disable ipython show output in minibuffer

I am using Ipython 3.6.3 with Emacs(elpy enabled) 25.2.2 on Kubuntu 17.10. I realize that sometimes output of Ipython keep showing at minibuffer, which is very annoying. But, I cannot find the value ...
1
vote
1answer
318 views

How to move elpy interactive python shell from bottom to the side?

I am using elpy as a python development environment. when I run a code in interactive python shell it shows the output in the bottom of the window. Can I move this bottom interactive python shell to ...
6
votes
1answer
922 views

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

how to set ipython on a virtualenv?

I'm using elpy for my python coding. I wanted to try ipython because of the nice built in profilers. So what I've done is to install ipython within my virtualenv. It works correctly. I then added the ...
3
votes
2answers
4k views

elpy not picking up virtualenv

I use elpy with: (setq python-shell-interpreter "/usr/bin/python3") (setq elpy-rpc-backend "jedi") I need now to work on a virtuaelnv. If I start it in a terminal and then edit the source code with ...
2
votes
2answers
403 views

Elpy starts Python processes at the root of my git tree, not the module's actual location

(I now submitted this as an issue in GitHub: https://github.com/jorgenschaefer/elpy/issues/1249) I'm using Emacs 25.3.1, Elpy v20171212.850, and Python 3.6.3 on MacOS 10.13.2 . I have a project ...
2
votes
1answer
115 views

Matching key-bindings between modes

I'm new to emacs, and I'm trying to set it up as my editor for both python and R. Elpy and Ess are both great, and I'm relying on them a lot. However, I'm used to the Ess key-bindings, and would like ...
0
votes
0answers
301 views

No Match on elpy

I am trying to install elpy. I added the lines (require 'package) (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/") ) (package-initialize) (elpy-...