-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Add support to activate environments with Pixi #23558
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
Comments
Hey @seembha, thanks for reporting. What's really missing in Spyder is using Pixi to activate kernels in our IPython console. We'll try to do that in 6.0.5, to be released in a couple of months. In the meantime, I'm afraid there's nothing to do about it, sorry. @wolfv, what's the equivalent of |
Hey @ccordoba12 The equivalent to
|
Thanks for chiming in @Hofer-Julian! And how can we get the path to the manifest file from a Python executable one in an env created by Pixi? Or in other words, what's is the folder structure of Pixi envs created for a project? |
I don't fully understand the first question but the folder structure is like this:
"default" is always there, but users can create additional environments. The folder structure of the environment itself is the same as with conda, mamba, ... |
Sorry, I just wanted to know how many parents up from the env's Python executable (which is the path we know in Spyder) the manifest file is located.
Thanks! That's also another valuable piece of info. |
Checking this I think some changes to
And inside Spyder, as a minimum:
Other things that could be related with pixi support are detecting/listing pixi created envs and add from the IPython console menu the possibility to launch a console using a pixi created env Python interpreter but maybe that is out of the scope of this issue 🤔 Anyhow, after these changes are done I think we will need to enforce an update of As a side note, trying to understand why the initial traceback appeared, I did some testing with pixi and interestingly the command to run the kernel worked and the console launched without problems for me whe choosing a Python interpreter from a pixi created env. In fact if I do |
I thought only step 3 of the ones you listed above was necessary for this. But if changes are necessary to
Yeah, a little bit. We could improve that by detecting if Would you like to submit a PR for that? |
I am using
pixi
to manage my python projects and have aglobal
environment where I want to installspyder
and then use that with local project environments. Here's my setupWhen I use
Spyder
in my local environmentPS C:\Users\seembha\Projects\Python\test> pixi run spyder
the
IPython
console shows the following errorI am using
JupyterLab
with the same setup and, with the help ofpixi-kernel
(https://github.com/renan-r-santos/pixi-kernel), it is able to select the correctpython
interpreter in the local environment.I was hoping
Spyder
could provide similar support forpixi
environments.The text was updated successfully, but these errors were encountered: