question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] Virtual environments?

See original GitHub issue

Hello!

First of all thank you guys for supporting this fork.

I’m using neovim as my main code editor and right now I’m trying to migrate from coc.nvim to native neovim LSP client implementation(which is still in development btw).

So, I don’t figured out how to configure this language server to use executables from virtual environment instead of global scope of my system. For example from python venv or pipenv. In coc It was enough just to specify configuration parameter “python.pythonPath” with the full path to the python executable file in the virtual environment and everything works fine.

Tech information above System: Manjaro GNU/Linux LSP Client: neovim v0.5.0-dev

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
weeman1337commented, Jun 5, 2021

Hi @TitaniumHocker so you are installing python-lsp-server in every project? To me that looks like a huge overhead. Did anybody find out how to install python-lsp-server globally or in a separate virtualenv and point it to the project currently working on?

3reactions
ccordoba12commented, Jul 19, 2021

We provide the option pylsp.plugins.jedi.environment to configure your preferred environment, so you need to make use of it (see our configuration description file).

Note: This is something that needs to be solved client-side, so please stop posting comments here and open an issue in Neovim or your other editors or IDEs to add support for that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Virtual Environments: A Primer
Virtual environments are a common and effective technique used in Python development. Gaining a better understanding of how they work, why you ...
Read more >
Virtual Environments - Science topic
Explore the latest questions and answers in Virtual Environments, and find Virtual Environments experts. Questions (62).
Read more >
Guiding Questions for Facilitating Conversations in a Virtual ...
Guiding Questions for Facilitating Conversations in a Virtual Environment- * ... may be particularly challenging in the remote environment?
Read more >
Virtual Environments - Problem Solving 101 with Python
Using virtual environments is good standard practice when using Python. A virtual environment is a standalone Python interpreter and isolated installed ...
Read more >
Virtual Environments - Problem Solving with Python
Using virtual environments is standard practice in Python. A virtual environment is an isolated installation of Python with associated packages.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found