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

How to complete sympy, numpy, scipy etc #104

Open
physicophilic opened this issue Nov 3, 2021 · 5 comments
Open

How to complete sympy, numpy, scipy etc #104

physicophilic opened this issue Nov 3, 2021 · 5 comments

Comments

@physicophilic
Copy link

physicophilic commented Nov 3, 2021

I'm able to complete functions in mpmath and math modules, but others mentioned here don't work.
I see a similar issue on Jedi here, but I am not sure if this is entirely a thing of Jedi.

What can I try?

I'm using 1.24 version with Neovim's LSP.

Also, the executable is called pyls for me. Isn't it supposed to be pylsp?

@ccordoba12
Copy link
Member

ccordoba12 commented Nov 3, 2021

Please read the last comment onn that issue, there is the solution:

davidhalter/jedi#372 (comment)

That won't give you completions for all objects, but for a substantial amount at least.

About the command, you probably have the previous version of this server installed.

@physicophilic
Copy link
Author

Thank you. I had installed numpydoc before posting this issue. Later I saw that tt completes that sometimes - I don't know what's up with it.

About the command, you probably have the previous version of this server installed.

That's really weird. I did pip install python-lsp-server and then pip install python-lsp-server[all] after which the bin folder had only a pyls.

@JonahZeng
Copy link

Thank you. I had installed numpydoc before posting this issue. Later I saw that tt completes that sometimes - I don't know what's up with it.

About the command, you probably have the previous version of this server installed.

That's really weird. I did pip install python-lsp-server and then pip install python-lsp-server[all] after which the bin folder had only a pyls.

Did you sloved this problem or not? I met this issue too~, it seems like pylsp can't complete all the third module in 'site-packages' directory.

@JonahZeng
Copy link

pylsp completions 3rd party modules
maybe it works for you.

@Konfekt
Copy link

Konfekt commented Nov 3, 2024

While completion for Numpy works in general, it fails for built-ins like random.
Is this rather a Jedi issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants