posit-dev / posit-dev/positron
Manually defined R and Python environments
@isabelizimm is already working on this.
Since Sep 3, 2026.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 184
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 206
Description
It's currently possible to specify specific R and Python paths to discover, but reviewing support tickets around interpreter discovery and startup in Positron, we often find that more flexibility around startup is needed. Because we don't have very many tools to customize interpreter startup that are scoped to a particular interpreter, there's no escape hatch if our existing tools don't provide the startup customization that's desired.
For example, it's easy to set an environment variable for all interpreters, but not a specific interpreter.
We recently added support for r-versions for R, which adds many extensibility points, but this mechanism (a) doesn't work for Python, and (b) relies on a file-based configuration that is effectively legacy configuration in Workbench.
Proposal
Add a settings.json based configuration mechanism that is similar to r-versions but cross-language and Positron-native, giving users the ability to specify an interpreter with a:
- label
- path to binary
- custom environment variables to set/amend
- custom startup command
- module to load
- repository to use
- library paths
etc.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.