Skip to content

[WIP] Monorepo placeholders#2

Draft
amaloney wants to merge 274 commits intomainfrom
issue1/monorepo
Draft

[WIP] Monorepo placeholders#2
amaloney wants to merge 274 commits intomainfrom
issue1/monorepo

Conversation

@amaloney
Copy link
Member

resolves #1

aloctavodia and others added 20 commits March 20, 2025 10:16
This commit was created by changelog-from-release in 'Post-release' CI workflow

Co-authored-by: aloctavodia <aloctavodia@users.noreply.github.com>
* add coverage argument to pit plots

* add coverage argument to pit plots

* rm nonexistent plot

* fix gallery
This commit was created by changelog-from-release in 'Post-release' CI workflow

Co-authored-by: aloctavodia <aloctavodia@users.noreply.github.com>
This commit was created by changelog-from-release in 'Post-release' CI workflow

Co-authored-by: aloctavodia <aloctavodia@users.noreply.github.com>
* add plot_loo_pit

* Update loopitplot.py

* fix docstring
* clean pit functions

* fix gallery names
* add nested r-hat

* small fix
@aloctavodia aloctavodia moved this to In progress in Beta New ArviZ Apr 11, 2025
@aloctavodia
Copy link

Here, we are recommending the use of uv, but uv seems to be focused on pure Python dependencies, contrary to, for example, conda/mamba. For instance, it is recommended to install PyMC using conda. Can we recommend using Pixi instead? I understand pixi uses uv under the hood, but also plays well with the conda ecosystem.

@amaloney
Copy link
Member Author

uv seems to be focused on pure Python dependencies, contrary to, for example, conda/mamba

Correct. uv is a Python only package manager like pip, while conda/mamba allows you to install packages from other languages. pixi also allows installing packages from other languages using conda-forge.

Can we recommend using Pixi instead?

  • If this question is in reference to installing PyMC with pixi, then yes you can definitely switch to using pixi with PyMC.
  • If this question is about using pixi for ArviZ, then no because pixi does not currently have the concept of a "workspace", which is needed for the monorepo architecture.

pixi uses uv under the hood, but also plays well with the conda ecosystem.

This is also correct, but it is lacking some features we are using to create a workspace, which is why we are using uv instead. We could reach out to pixi to see how we can help move the workspace concept along. I see they have an unstable concept of multiple packages https://pixi.sh/latest/build/workspace/#lets-get-started, which I can experiment with here.

@aloctavodia
Copy link

Let me reframe my concerns, and sorry if I missed this the first time we talked about this. Is the uv restriction only for developers or also for users? If it is for the developer, that's fine with me.

@amaloney
Copy link
Member Author

For now uv is only for devs. Once the package is on pypi, a user can use any number of tools to install it, e.g. pip, poetry, pixi. Once it is on conda-forge, then a user can use conda, mamba, or pixi to install it.

@aloctavodia
Copy link

Thanks for clarifying.

@amaloney
Copy link
Member Author

These are valid questions that should be documented. I'll update the issue to ensure we capture things to do when documenting

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

Labels

None yet

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

create monorepo

8 participants