user workflows and the case for env maybe unrelated to cwd #1021
Replies: 8 comments 21 replies
-
Related to this discussion: #1011 |
Beta Was this translation helpful? Give feedback.
-
This is a personal reaction. One of my biggest problems with With much better IDE integration and possibly other tools included in pixi, I think we're able to solve most of the annoyances people encounter with not having the default conda workflow. For the "business people", which from my background also counts for industrial engineers we should focus on good documentation, helpful messaging in the tooling and the ability to stay out of the terminal as that often gives the biggest push back in my experience. I just wanted to get these thoughts on the matter out, this doesn't mean we would never support anything like it. We're a flexible and risk taking team but also build out of a believe, if this believe would choke the adoption we should definitely re-validate but I'm not convinced yet. |
Beta Was this translation helpful? Give feedback.
-
I wholly agree that not having a global default env like the conda
There is a hierarchy of changes that I think would be useful and could address those other workflows.
With one or both of these changes, it would allow one to write a tool that then goes a step further and get a conda-like workflow of being able to activate environments by name. What I imagine is having a mapping of env names to project directories or project manifest paths that is stored globally (like I think pixi adoption could be increased from those already using conda if it was easier to adopt a conda-like workflow. These are the users that are already using conda-forge and have buy-in in the ecosystem. Currently, switching brings noted benefits, but breaks current workflows. I know some would argue that the local project directory workflow is better, but if it throws up a barrier to current conda users, then many won't take the time to adapt and will just stick with mamba/conda. |
Beta Was this translation helpful? Give feedback.
-
Quotes:
I agree too. |
Beta Was this translation helpful? Give feedback.
-
So it seems the discussion boils down to: Does pixi want to package a direct way to run these scripts or should third parties devise their own - if they want to leverage pixi qualities. It is not so complicated but it is also duplicate efforts. |
Beta Was this translation helpful? Give feedback.
-
So the case you are describing is activating a pixi environment if you want to work on another project, I think. But isn't there a problem if you decide to use a pixi project inside that activated environment? From what I gather @oscar6echo described in the original post, there are people working in kind of a I'm not saying that works well now either, because it might require a layered environment. I just think that it would not solve your use case once you are using more than one pixi.toml in conjuction? WDYT? EDIT: |
Beta Was this translation helpful? Give feedback.
-
Could this use-case be seen as kind of like a: https://www.jetpack.io/devbox/docs/quickstart/ like set-up + a number of editable packages? |
Beta Was this translation helpful? Give feedback.
-
Assuming issue #1038 is implemented and allows to change directory keeping the same env, I think pixi would benefit from more verbosity and env discoverability. In brainstorm mode, I would suggest the following commands:
With such commands (or similar) a user whether "IT professional", "business people", "industrial engineer", etc would probably understand pixi workings and candidate envs and then would have a conda-like env selection/activation. Note that these commands cannot break anything as they essentially provide info ( WDYT ? |
Beta Was this translation helpful? Give feedback.
-
This is discussion was started on discord channel General workflow use question.
Quoting my last line:
Quoting Ruben's last line:
Yes, but it is not only individual experimentation. It can be a business work "setup" (using a different word from env to express a user concept, not the usual conda env everybody knows) where python packages are installed as editable because they occasionally/frequenlty need be modified (if only for extra prints). Additionally, this setup can be on a VM shared among several "business people" (again using a different word from developper to stress the fact quite few python users are not developpers).
Indeed, these use cases are not about reproducibility, where the goal is to "git clone & run & it just works".
To be clear, I do see the value of reproducibility. But to be honest I don't think this is the full spectrum of users needs.
Now, I'll think out loud: Because there is a
PIXI_HOME
with an ability toglobal install
, surely there is a way to add the usual global env feature, or maybe provide it as a plugin to make it secondary, or display warning message when using such global envs. For "business people" verbosity can only help.Food for thought.
Beta Was this translation helpful? Give feedback.
All reactions