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.

Elpy is an package to bring powerful editing to Emacs. It combines a number of other packages, both written in Emacs as well as Python.

Resources:

64 questions
0
votes
0 answers

Python code runs the first time, errors if I attempt to run it twice

I'm using elpy and python3 in Ubuntu. I have the following python code in a file called turtleTest.py: from turtle import Turtle, Screen timy = Turtle() timy.shape("turtle") timy.fillcolor("red") my_screen = Screen() my_screen.exitonclick() When…
PavoDive
  • 6,322
  • 2
  • 29
  • 55
0
votes
0 answers

Refactoring function arguments with elpy

I am getting more and more used to working with elpy and damn it is amazing! However I can't seem to utilize the `elpy-refactor-rename' to also include correction in function input e.g. def mydef(a,b,c): return a+b res = mydef(1,2,3) I want to…
0
votes
0 answers

How to prevent automatic auto-completion window pop-up after class member access operators in company-mode of emacs?

For Python coding I use Elpy package which uses Company as completion framework. Since I don't like automatic pop-ups I set my completion function to execute only when I explicitly ask for the completion suggestions with C-n keybinding.…
Adaskos07
  • 41
  • 4
0
votes
1 answer

Initialization error trying to install elpy for emacs

Evening, I'm trying to install a package for emacs having never done so before. I am using the following guide https://realpython.com/emacs-the-best-python-editor/ which intends to install elpy. The following information is placed in…
0
votes
1 answer

Switch from default python interpreter to ipython in elpy (Django command)

Elpy uses the default python interpreter (elpy-django-command shell), I wondered if it is possible to use Ipython instead.
flex99
  • 11
  • 2
0
votes
0 answers

Emacs unable to locate python

I am trying enable python dev environment in Doom Emacs (to which I am a newbie); I installed elpy; and tried to launch shell to which it says "python not found but can be installed from Microsoft...". Then I added this to my config.el: (setq…
sawan
  • 67
  • 3
0
votes
0 answers

How can I stop the python process from terminating after a failed unit test so that I can call pdb.pm

This is a bit of a newbie question about basic python workflow. I have a library of python files, and a collection of associated unit tests. One of the tests is failing and I'd like to inject pdb at the spot of the failure. My workflow uses elpy…
Steven Scott
  • 481
  • 3
  • 14
0
votes
1 answer

How can I make auto-complete work with ELPY in emacs?

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.............: 26.3 Elpy..............:…
0
votes
1 answer

How to update nested functions in ipdb?

I'm running IPython3 in Emacs with Elpy and trying to edit nested functions on the fly. For example, I have the attached file open in one frame and IPython3 in the other. I send the buffer to IPython with C-c C-y b, switch to the IPython frame with…
0
votes
2 answers

emacs configuration: python-mode-hook

I am struggling with my emacs configuration. The relevant lines in .emacs are: (require 'python-mode) (add-to-list 'auto-mode-alist '("\\.py\\'" . python-mode)) (add-hook 'python-mode-hook '(lambda () (message "python-mode-hook called") …
user52366
  • 1,035
  • 1
  • 10
  • 21
0
votes
1 answer

How to invoke Process Python interrupt and keyboard interrupt in emacs?

I use Python in Emacs, with Elpy and iPython. I run code from a file with C-c C-c, but sometimes I would like to terminate the process (keyboard interrupt). I use the same shortcut to try to terminate the process (as per this question). My goal…
0
votes
0 answers

emacs as python IDE with elpy and django

I have my emacs configured with elpy and it works very fine: Syntaxis correction, autocomplete, see documentation, go to definition etc. Unfortunately, it doesn't work with django classes. Is there any way to enable the use of django in my emacs ?
Xabi E
  • 251
  • 2
  • 3
  • 15
0
votes
1 answer

Disable Ctrl+Enter

I am using python with elpy mode which work fine, however I am really annoyed by the default which runs executes the command under the cursor whenever I press CTRL+ENTER since I keep pressing it accidentally. How do I disable this behavior? I tried…
Tohiko
  • 1,860
  • 2
  • 18
  • 26
0
votes
0 answers

Emacs elpy flymake checks for syntax continuously

I am using elpy with emacs and flake8 as my syntax checker. I find that it keeps checking for syntax everytime i type, like if start opening a parenthesis it complains of syntax error, this leads to me not being able to see function declarations…
Vikash Balasubramanian
  • 2,921
  • 3
  • 33
  • 74
0
votes
2 answers

Emacs/Python - function expected an indented block

I made the switch to Emacs. I am using Elpy within Emacs as an IDE. My setup is side-by-side windows, on the left is a buffer(script) where I write/edit the code which then gets sent to the IPython shell on the right with Ctrl-Enter. When I type the…
user4533817