Skip to content

Use uv pip install ipykernel for dev environments#3982

Merged
r4victor merged 1 commit into
masterfrom
pr_dev_env_uv_pip
Jun 19, 2026
Merged

Use uv pip install ipykernel for dev environments#3982
r4victor merged 1 commit into
masterfrom
pr_dev_env_uv_pip

Conversation

@r4victor

Copy link
Copy Markdown
Collaborator

Replaces pip install with uv pip install for installing ipykernel in dev environments to speed up dev environment startup time. The commands have the same effect as uv pip installs to the same Python's environment (/dstack/venv in dstack images). Falls back to pip install if uv is missing.

Also makes CLI run waiting interval small (1s vs 5s) for a few first attempts to reduce the CLI update lag in case of fast run startup.

# time pip install --no-cache-dir ipykernel
real	0m5.947s
user	0m4.957s
sys	0m0.671s

# time uv pip install --no-cache-dir ipykernel
real	0m1.377s
user	0m0.734s
sys	0m0.828s

@r4victor r4victor merged commit 67d49cb into master Jun 19, 2026
24 checks passed
@r4victor r4victor deleted the pr_dev_env_uv_pip branch June 19, 2026 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant