Skip to content

feat(kernel): add uv to python notebook environments#420

Merged
rgbkrk merged 1 commit intomainfrom
quill/uv-in-notebook-env
Mar 2, 2026
Merged

feat(kernel): add uv to python notebook environments#420
rgbkrk merged 1 commit intomainfrom
quill/uv-in-notebook-env

Conversation

@rgbkrk
Copy link
Copy Markdown
Member

@rgbkrk rgbkrk commented Mar 2, 2026

Summary

UV binaries and packages are now available in all UV-based notebook environments. Both !uv pip install (shell magic) and %uv pip install (IPython magic) work seamlessly, with packages installing into the notebook's virtual environment.

Changes

  • uv:inline & uv:prewarmed: Set VIRTUAL_ENV and add uv binary to PATH at kernel launch
  • All UV environments: Install uv as a Python package during creation
  • uv:pyproject: Added --with uv to uv run command

Verification

  • Create a notebook with an inline UV environment
  • Verify !uv --version shows the correct uv path
  • Verify %uv pip install requests installs into the environment's venv
  • Create a notebook with a pyproject.toml and verify %uv works
  • Verify prewarmed environments show uv available after pool refresh

PR submitted by @rgbkrk's agent, Quill

@rgbkrk rgbkrk force-pushed the quill/uv-in-notebook-env branch from 6718cf8 to 2175bf5 Compare March 2, 2026 00:22
For uv-based environments, the kernel now has access to the uv binary via PATH and has uv installed as a Python package. This enables both `!uv pip install` (shell magic) and `%uv pip install` (IPython magic) to work seamlessly from notebooks.

Changes:
- uv:inline and uv:prewarmed: Set VIRTUAL_ENV and add uv to PATH at kernel launch
- uv:inline and uv:prewarmed: Install uv as a pip package during env creation
- uv:pyproject: Added --with uv to uv run command
- daemon pool warming: Added uv to default packages list
@rgbkrk rgbkrk force-pushed the quill/uv-in-notebook-env branch from 2175bf5 to a499009 Compare March 2, 2026 01:12
@rgbkrk rgbkrk marked this pull request as ready for review March 2, 2026 01:50
@rgbkrk rgbkrk merged commit f6a46d3 into main Mar 2, 2026
13 checks passed
@rgbkrk rgbkrk deleted the quill/uv-in-notebook-env branch March 2, 2026 01:50
@rgbkrk rgbkrk added quill PR authored by Quill Agent 🦆 editor CodeMirror, syntax highlighting, editor behavior labels Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

editor CodeMirror, syntax highlighting, editor behavior quill PR authored by Quill Agent 🦆

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant