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

Suggestion: option to select interpreter when opening new console #22020

Closed
2 tasks done
Miguel-LlamasLanza opened this issue Apr 24, 2024 · 10 comments
Closed
2 tasks done

Comments

@Miguel-LlamasLanza
Copy link

Miguel-LlamasLanza commented Apr 24, 2024

Issue Report Checklist

Problem Description (Suggestion)

In order to open a kernel that uses a different python interpreter (e.g. a different conda environment), we need to go to preferences, change the python interpreter from the default one to another one. Then we can open a new python console with this interpreter for the kernel. We then need to switch back to the default interpreter in the preferences, so that new consoles will be opened with the default interpreter.

I suggest to have an option (in the menu that appears by clicking on the three lines of the top right of the console) to open a new console with a specific interpreter instead of the default, to avoid doing all that was mentioned before.

Ideally, it would be nice to have an option to choose between available conda environments, but I understand this might be quite difficult to ensure for each type of installation. Also ideally, the name of the console could tell to which environment it corresponds.

@pyZerrenner
Copy link

There seems to be a PR #20421 that implements a menu to start a console with a specific interpreter, but apparently it did not make its way to the main release yet.

(Also I just made my own similar suggestion #22022, not realising that this new issue was posted.)

@endolith
Copy link

Can conda environment be incorporated into the "Configuration per file" dialog? So you can say which environment a particular file should be run in, and then it always is?

image

@dalthviz
Copy link
Member

dalthviz commented Jul 6, 2024

Hi there, sorry for the late response! Just in case, I would say PR #20421 solves this issue. That work and some improvements on top of that initial implementation have been done/are being done like #22200 and will be part of Spyder 6. If you want to check the funtionality done at #20421 you can install the latest Spyder 6 beta release (see the Spyder GitHub release page at https://github.com/spyder-ide/spyder/releases?q=pre-release&expanded=true)

@dalthviz
Copy link
Member

dalthviz commented Jul 6, 2024

Can conda environment be incorporated into the "Configuration per file" dialog? So you can say which environment a particular file should be run in, and then it always is?

I would say that idea is more closely related with #22022 (quite an interesting idea though :))

@dalthviz
Copy link
Member

dalthviz commented Jul 9, 2024

@ccordoba12 should we close this as solved by #20421 or maybe use #22200 to close this?

@Miguel-LlamasLanza
Copy link
Author

Miguel-LlamasLanza commented Jul 9, 2024 via email

@dalthviz dalthviz removed their assignment Nov 7, 2024
@dalthviz
Copy link
Member

dalthviz commented Nov 7, 2024

Closing as solved by #20421 and #22200

@dalthviz dalthviz closed this as completed Nov 7, 2024
@endolith
Copy link

endolith commented Nov 8, 2024

Can conda environment be incorporated into the "Configuration per file" dialog? So you can say which environment a particular file should be run in, and then it always is?

I would say that idea is more closely related with #22022 (quite an interesting idea though :))

Should I file a separate feature request now that the environment stuff has been implemented?

@ccordoba12
Copy link
Member

@endolith, do you think issue #22022 doesn't cover your request?

@endolith
Copy link

endolith commented Nov 8, 2024

@endolith, do you think issue #22022 doesn't cover your request?

Sorry yes, that sounds like the same thing

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

No branches or pull requests

5 participants