Code Monkey home page Code Monkey logo

Comments (15)

yuyang0 avatar yuyang0 commented on June 6, 2024

try jedi, it's an amazing package for python

from emacs.d.

ccruquan avatar ccruquan commented on June 6, 2024

or maybe try company-inf-python.

from emacs.d.

purcell avatar purcell commented on June 6, 2024

@ccruquan But this config doesn't use company, so that wouldn't help.

anaconda-mode is another option.

At some point I'll most likely switch to company-mode instead of auto-complete, but it pretty much requires dropping support for Emacs 23, which would be a shame.

from emacs.d.

ccruquan avatar ccruquan commented on June 6, 2024

waiting for switch to company-mode.

from emacs.d.

coding8 avatar coding8 commented on June 6, 2024

I use company-mode,but show message :
Company: Back-end company-ropemacs error "Symbol's function definition is void: rope-completions" with args (candidates os)
What's matter with company?

from emacs.d.

purcell avatar purcell commented on June 6, 2024

@coding8 Perhaps someone who uses company can comment here. I don't have an answer myself.

from emacs.d.

hello-code avatar hello-code commented on June 6, 2024

Waiting for switch to company-mode.

from emacs.d.

dgutov avatar dgutov commented on June 6, 2024

Perhaps someone who uses company can comment here. I don't have an answer myself.

company-mode/company-mode#159

from emacs.d.

dgutov avatar dgutov commented on June 6, 2024

@coding8 Could you answer the question I asked @hello-code in company-mode/company-mode#159 (comment)?

from emacs.d.

hello-code avatar hello-code commented on June 6, 2024

Sorry purcell ! I am lost.
I install company-anaconda and now solve the problem.
Thanks purcell!
Thanks dgutov!

from emacs.d.

junfx avatar junfx commented on June 6, 2024

check my fork, lisp/init-python-mode.el, using jedi

from emacs.d.

purcell avatar purcell commented on June 6, 2024

@junfx But what happens with those settings if you don't have virtualenv installed, or the ~/.python-environments dir is missing? Is it still possible to open python files without errors? I want to make sure the experience is okay for new users of this config who just casually open a python file.

from emacs.d.

huseyinyilmaz avatar huseyinyilmaz commented on June 6, 2024

I solved my path problem by getting the virtualenv path from currently active virtualenv (I activate it with virtualenv-workon).

I also add projectile project-root to path for jedi. So my jedi can also find project modules.

https://github.com/huseyinyilmaz/emacs-config/blob/master/lisp/user-init-jedi.el#L33-L69

I hope that helps

UPDATE: fixed the link.

from emacs.d.

junfx avatar junfx commented on June 6, 2024

@purcell there is a default value for python-environment. The virtualenv is a problem. Also, it requires 'pip install jedi'.

from emacs.d.

purcell avatar purcell commented on June 6, 2024

anaconda-mode is now enabled by default in this config.

from emacs.d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.