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
2
votes
1 answer

Tabs and Spaces in emacs python-mode / elpy

This has been an exquisite exercise in frustration. For some reason, my python-mode / elpy buffers always have intent-tabs-mode nil. I'm using python-mode 6.2.3, elpy 1.32.0, and emacs 25.2.2. My .emacs file contains: ;;…
Gabe
  • 131
  • 1
  • 13
2
votes
1 answer

How can I make auto-complete work with ELPY?

I am currently trying to install the ELPY package for Emacs, which is a Python development mode. I am following the instructions on the Github page, but am having issues. When I evaluate the following expressions (package-initialize) (elpy-enable)…
MadPhysicist
  • 5,401
  • 11
  • 42
  • 107
2
votes
1 answer

Python3, Elpy in Emacs (OSX): No completion found user-error: Cannot complete at point

OSX 10.13.4 emacs: 25.3 (9.0) python 3.5.2 I ma having problems with elpy auto-complete in emcas. Essentially, elpy gets stuck on the dot (for example: numpy.) and does not suggest any possible completion. If I press on any key, i see a message: 'No…
Cy Bu
  • 1,401
  • 2
  • 22
  • 33
2
votes
2 answers

Emacs Python Interpreter Is Not Set Correctly

Fresh install of Linux Mint 18.3 Cinnamon. Also a fresh install of Gnu Emacs 24.5.1 Also a fresh install of Anaconda3: ~ $ conda -version usage: conda [-h] [-V] command ... conda: error: the following arguments are required: command ~ $ conda…
user2127595
  • 176
  • 14
2
votes
0 answers

No Match When Installing 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-enable) ;; For elpy (setq elpy-rpc-python-command…
J126
  • 309
  • 1
  • 7
2
votes
0 answers

How to use python 2 for a specific project?

My global elpy settings are the following RPC Python........: 3.5.3 (/usr/bin/python3) Interactive Python: ipython3 (/usr/bin/ipython3) I need to work on a project that uses python 2. How do I do that without changing global settings?
CrabMan
  • 1,578
  • 18
  • 37
2
votes
1 answer

Elpy to allow pyenv to work on a project basis

I've used Emacs for all my coding projects so far. Soon I will start some python projects for the first time and would love to stick to Emacs for these as well. I was looking into elpy which seems to provide already alot of desired functionality.…
math
  • 1,868
  • 4
  • 26
  • 60
2
votes
2 answers

Is there a function like eval-print-last-sexp for Comint-Mode?

Is there an equivalent function to eval-print-last-sexp for comint derived modes in emacs? Specifically, I'm using python-mode (with elpy) and am looking for a way to send the contents of a region to the Python process and then print the results on…
nslamberth
  • 1,147
  • 8
  • 10
2
votes
1 answer

Can't save file: "autopep8 command not found"

I'm running python in emacs. I've written some code, and now I go to save the code using C-x C-s as normal. However, instead of saving, autopep8 command not found appears in the minibuffer. I can't save my code. What can I do to restore function to…
Hatshepsut
  • 5,962
  • 8
  • 44
  • 80
2
votes
1 answer

emacs: python set tabs for indentation (issue with pylint, autopep8, flycheck etc.)

I have set up my emacs for python development. I use elpy and other tools such as autopep8, pylint and flycheck to get feedback from emacs for syntactic and style issues. I use spaces for indentation which is the suggested approach (pep8).…
George B.
  • 565
  • 7
  • 19
2
votes
1 answer

Emacs python echo command with elpy

I am using elpy to run python in emacs. When I press C-RET on a command in myfile.py, it prints the output of that command to the python shell below. Is it possible for it to print 1+2 before printing the response 3? I think it would be a bit…
Hatshepsut
  • 5,962
  • 8
  • 44
  • 80
2
votes
1 answer

How to automatically fix the warning or errors when edit python using elpy of emacs?

Like the hint with wavy line under the lines of the code which tells E231 missing whitespace after ','
Crazymage
  • 114
  • 9
1
vote
1 answer

Better python unittest integration?

I'm using GNU Emacs 24.5.1 to work on Python code. I often want to run just a single unit test. I can do this, for example, by running: test=spi.test_views.IndexViewTest.generate_select2_data_with_embedded_spaces make test with M-X compile. My…
Roy Smith
  • 2,039
  • 3
  • 20
  • 27
1
vote
1 answer

emacs elpy custom python module not found

I have my emacs configured with elpy as the following: ;;; for python (elpy-enable) (setq elpy-modules (delq 'elpy-module-flymake elpy-modules)) (add-hook 'elpy-mode-hook 'flycheck-mode) (pyenv-mode) (setq elpy-shell-use-project-root nil) …
Dennis
  • 159
  • 1
  • 11
1
vote
0 answers

Is there any object browser in Elpy?

My working environment: Emacs version: 26.3 OS: Windows 10 (64 bits) Python version: 3.8.3 (64 bits) I've installed elpy from Melpa on Emacs. In order to navigate in my code I use C-c C-o to view the list of defined classes, functions and methods…
user17911
  • 1,073
  • 1
  • 8
  • 18