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

uv-native workflow (uv add / uv run) #3904

Open
mstarodub opened this issue Feb 25, 2025 · 0 comments
Open

uv-native workflow (uv add / uv run) #3904

mstarodub opened this issue Feb 25, 2025 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@mstarodub
Copy link

Description

uv already gives us reproducibility with lockfiles, so the --sandbox feature of marimo and hiding away uv isn't helpful if one already uses the modern uv interfaces.

Instead, it would be good if marimo's dependency handling was aware of 1. uv projects (uv init/ uv add, refer to astral-sh/uv#9219) and 2. ephemeral uv environments (uv run).

These are the workflows to reproduce:

uv init .
uv add marimo torch
uv run marimo edit 

Then, inside marimo, make a new file, in a new cell, type: import numpy.
Observe the "install with" / missing dependency popup showing.
pip is selected as default. It should be uv, and running "install" should uv addinside the current project.

Simply running
uv run --with marimo --with torch marimo edit
from the terminal, then once again importing numpy in a new cell inside the notebook.
Clicking install on the popup should absolutely not install anything, since the environment is supposed to be ephemeral. I am not sure what the right behaviour here should be. Perhaps it would be possible to dynamically modify that ephemeral uv environment?

Suggested solution

see above

Alternative

No response

Additional context

No response

@mstarodub mstarodub added the enhancement New feature or request label Feb 25, 2025
@mscolnick mscolnick added this to the marimo 1.0.0 milestone Feb 26, 2025
@mscolnick mscolnick added the help wanted Extra attention is needed label Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants