pixi icon indicating copy to clipboard operation
pixi copied to clipboard

Template inheritance system for Pixi projects

Open apcamargo opened this issue 1 year ago • 1 comments

It is common for multiple projects to share the same minimal set of dependencies, requiring users to manually add the same series of requirements each time a new project is created. For instance, when creating a Python project for data analysis using Jupyter, users must repeatedly execute the following commands:

pixi create jupyter_project
cd jupyter_project
pixi add python ipykernel pixi-kernel numpy scipy polars

To streamline this process, Pixi could implement a template inheritance system. This would allow users to define global project templates and inherit from them during project creation. For example:

pixi init --template jupyter jupyter_project

apcamargo avatar Feb 25 '25 02:02 apcamargo

Interesting idea! I think it somehow related to https://github.com/prefix-dev/pixi/issues/2837

Maybe as the first iteration, we could just use copier/cookiecutter templates.

nichtmacho avatar Feb 25 '25 10:02 nichtmacho