Questions tagged [emacs-jedi]

Python auto-completion for Emacs

From its GitHub page:

Jedi.el is a Python auto-completion package for Emacs. It aims at helping your Python coding in a non-destructive way. It also helps you to find information about Python objects, such as docstring, function arguments and code location.

Links

See also

18 questions
8
votes
2 answers

Auto import modules with emacs-jedi

With ropemacs you can do something like this: M-x rope-auto-import This analyze the code (I presume) and imports missing modules, for example if I write: datetime.now() it should do the import for me by add this line: from datetime import…
qed
  • 22,298
  • 21
  • 125
  • 196
7
votes
2 answers

Installing python server for emacs-jedi

I am trying to install Jedi for emacs using marmalade package manager by following instructions here -- http://tkf.github.io/emacs-jedi/latest/. The package manger installs Jedi along with its dependencies. But I cannot install python server…
Nithya
  • 181
  • 1
  • 8
5
votes
1 answer

Emacs: Complete base class methods for Python

Is it possible to make either jedi.el or anaconda-mode complete base class methods? For example, when subclassing html.parser.HTMLParser I expect it to complete the following code at point (1) (base class has methods like handle_data or…
nightuser
  • 664
  • 4
  • 13
4
votes
0 answers

I am getting deferred error : (error Keyword argument :triggered not one of (:requires :force-init)) on C-TAB

I'm pretty new to Emacs but I recently tried installing Jedi.el for Python Development. The installation worked fine, I used marmalade. But now, when I open a Python file and try to invoke the auto-completion using C-TAB I get this error. deferred…
StefanK2
  • 91
  • 3
3
votes
0 answers

My emacs-jedi won't find a package

In my .emacs I have (setenv "PYTHONPATH" "/home/username/python-packages") where I have some packages that I use and develop. Unfortunately, emacs-jedi won't find them, and it won't autocomplete them. How can I debug it and solve the problem? For…
Dror
  • 12,174
  • 21
  • 90
  • 160
3
votes
1 answer

Package load problems with el-get installed emacs-jedi

I've followed these instructions with el-get to try to install emacs-jedi (and the other needed packages), but no luck. In my .emacs file, I've added the following lines: ;; .emacs ;; Load package repositories (require 'package) (add-to-list…
ely
  • 74,674
  • 34
  • 147
  • 228
2
votes
1 answer

Configure jedi not to auto-complete automatically?

I have jedi-mode installed in emacs for python editing because I find C-. and C-, very useful for jumping to definitions and back. Automatic auto-completion, however, is not something I want. As I try to use emacs with jedi installed, it is…
Jeff Kaufman
  • 575
  • 3
  • 13
2
votes
1 answer

Deferred error when jedi:complete-on-dot

I get the following error when I try to use jedi:complete-on-dot: deferred error : (error "Keyword argument :triggered not one of (:requires :force-init)") I will note that Jedi is not the only issue I'm having with emacs python modes today. isort…
Alex Hall
  • 171
  • 11
2
votes
1 answer

multiples jediepcserver.py for multiples virtualenvs

I'm trying to run multiples jediepcserver.py for multiples virtualenvs for different projects. My idea is to have the proper autocompletion in each of the projects that I'm working on Emacs. For example, I'm working on two projects at the moment,…
Manuel Kaufmann
  • 346
  • 1
  • 7
2
votes
1 answer

Why does Emacs Jedi always insert “elif” after I type “else:”?

I have installed “Jedi” mode in Emacs but am finding that it auto-inserts the word elif every time I create a new line and then type e l s e : Enter because the colon character apparently kicks off Jedi’s completion logic with elif suggested as the…
Brandon Rhodes
  • 83,755
  • 16
  • 106
  • 147
2
votes
3 answers

emacs Jedi disable #

I have a working version of JEDI with Emacs 24.3 on osx. The autocomplete feature is wonderful, except for when I want to comment things out! I frequently comment/uncomment portions of my code and was hoping there was a way to prevent JEDI's auto…
Robert
  • 129
  • 1
  • 1
  • 6
1
vote
0 answers

How can I use emacs-jedi with another virtualenv for my project?

I've installed emacs-jedi several months ago and it worked very well. After some time without a python project I came back (with an update to emacs 26 and re-installed emacs-jedi) and I have a problem: When I just start emacs, jedi works fine. But…
Markus Grunwald
  • 133
  • 1
  • 10
1
vote
0 answers

Emacs-jedi: jedi:instal-server fails "AttributeError:

I get an error when running jedi:install-server which I don't know how to fix: Running setup.py install for jediepcserver Traceback (most recent call last): File \"\", line 1, in File…
Christian Herenz
  • 505
  • 5
  • 18
1
vote
1 answer

jedi fails to correctly autocomplete from package with the same name as the module that I'm in

I'm using emacs and I have configured jedi.el so it autocompletes after dot. Let's assume that I'm writing a module my_app.my_module and I have package installed in env called my_module. My file my_app/my_module.py will look like: import…
kendriu
  • 565
  • 3
  • 21
1
vote
1 answer

How do I scroll through the autocomplete options in emacs-jedi (besides arrow keys)

Up and down arrow keys work but I was wondering if there was another option on the home row. If not, how do I set it to something else? (emacs noob)
Andrew
  • 6,295
  • 11
  • 56
  • 95
1
2