Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Python function docs support like spacemacs #1160

Closed
jramapuram opened this issue Apr 3, 2018 · 6 comments
Closed

[Feature Request] Python function docs support like spacemacs #1160

jramapuram opened this issue Apr 3, 2018 · 6 comments

Comments

@jramapuram
Copy link

When typing a function spacemacs lists the parameters of the function in the minibuffer. This is super helpful (rather than going to the function documentation to read and then returning). Any chance of getting this included? Not sure what package(s) are used for this.

@bbatsov
Copy link
Owner

bbatsov commented Apr 6, 2018

I guess we can easily do this if someone checks what exactly are they using there.

@jramapuram
Copy link
Author

Looks like this a base feature in Jedi? See screenshots from their repo: https://github.com/davidhalter/jedi

prelude does do autocomplete:

screenshot from 2018-04-06 18-58-21

but doesn't show any info w.r.t the functions :

screenshot from 2018-04-06 18-58-59

@bbatsov
Copy link
Owner

bbatsov commented Oct 1, 2018

PRs welcome! :-)

@palikar
Copy link
Contributor

palikar commented Oct 22, 2018

I took a closer look at the issue and I actually managed to get it to work. The solution though is not a trivial one. The problem stems from a jedi API update that is not reflected in the emacs-jedi package. There is actually a opened PR in the repo that addresses the issue but it's not merged yet. I myself made the changes from the commit in the jedi-core package and now everything work fine. I use the following configuration in my personal config:

(add-hook 'python-mode-hook 'jedi:setup)
(add-hook 'python-mode-hook 'jedi:ac-setup)
(setq jedi:setup-keys t)
(setq jedi:complete-on-dot t)
(setq jedi:tooltip-method nil)
(setq elpy-rpc-backend "jedi")
(setq jedi:get-in-function-call-delay 0)

Result:
screenshot from 2018-10-23 00-11-03

@stale
Copy link

stale bot commented May 8, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding!

@stale stale bot added the stale label May 8, 2019
@stale
Copy link

stale bot commented Jun 7, 2019

This issues been automatically closed due to lack of activity. Feel free to re-open it if you ever come back to it.

@stale stale bot closed this as completed Jun 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants