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.

Feature request: per-project Python interpreter

See original GitHub issue

Related issues: #9804 (project settings, you guys are considering Conda envs which is a similar usecase) #1014 (exactly this, imported from google code and seemingly abandoned)

Currently interpreters are a global setting. It would be great to have a Python interpreter selectable as a project-level preference instead.

In #9804 it looks like you are considering allowing project-level Conda, but I don’t use Conda. I just use a virtualenv per project (managed by poetry; pipenv users will have a similar/identical setup). This means I just want to set every project’s interpreter to ./.venv/bin/python, relative to the project root.

For bonus points it would be nice to detect the existence of a pyproject.toml (https://www.python.org/dev/peps/pep-0518/), check if poetry is used (likewise for any other pyproject.toml-using tools), and if so then autoconfigure project interpreter to be the default under poetry env.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:12
  • Comments:20 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ccordoba12commented, Nov 12, 2021

This feature hasn’t been implemented yet, sorry.

1reaction
ccordoba12commented, Jan 6, 2021

@svdHero, sorry to hear that. Unfortunately, we are a small team and this is kind of a big feature. We’ll try to implement it for Spyder 6, to be released at the end of this year or the beginning of 2022.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature request - Virtualenv support : PY-709 - JetBrains YouTrack
I would like to be able to add a virtualenv folder for the python interpreter on a per project basis. I believe this...
Read more >
PEP 42 – Feature Requests - Python Enhancement Proposals
This PEP contains a list of feature requests that may be considered for future versions of Python. Large feature requests should not be...
Read more >
Re: [Eric] Feature request: run/debug dialog enhancement
Re: [Eric] Feature request: run/debug dialog enhancement ... are utilizing different Python interpreters you can define them on a per project basis.
Read more >
Setting the Python path for local project in VS Code without ...
It currently isn't directly supported, but we have a feature request that you can upvote if you would like to see it prioritized....
Read more >
368970 – Python: autocompletion not available for library installed ...
I eventally want to support a configurable python interpreter per project to retrieve paths from, that's a long-standing feature request .
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