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

Startup: "Forget" unused interpreters, or otherwise start them up less aggressively #3432

Open
Tracked by #3541
jmcphers opened this issue Jun 6, 2024 · 0 comments
Labels
area: core Issues related to Core category.

Comments

@jmcphers
Copy link
Collaborator

jmcphers commented Jun 6, 2024

Feedback from @nealrichardson:

I am working on an R package in Positron. There's no Python code in this directory anywhere, it's very clearly an R package. But when I open it in Positron, the Console tab is showing a Python interpreter running. I'm all for being Python first and all, but this seems excessive :)
Just to be sure, I just installed the latest Positron prerelease, and watched closely as the project opened. First it opened the Python repl, then it switched to the R console, and then after another little while, it switched back to Python

via https://positpbc.slack.com/archives/C05M2EZCPGR/p1716471902486219

This is emergent behavior resulting from two different Positron behaviors.

  • Python is started if nothing else seems appropriate (this probably happened at one point in the past in Neal's project)
  • We remember what was started and always start it again until you shut it down manually at some point

Both were intentional, but this emergent behavior isn't. We could help cut the chatter by:

  • automatically un-affiliating runtimes that don't actually get used (when there is a runtime that does get used), and/or
  • not creating an affiliation for a runtime that was only a guess

(Note that the switch-back-and-forth issue at startup is tracked separately, in #1143)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: core Issues related to Core category.
Projects
None yet
Development

No branches or pull requests

2 participants