-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
When a pixi.toml is detected, the daemon labels the source as conda:pixi and shows a pixi icon, but the kernel actually runs in a generic prewarmed conda env that has nothing to do with the project's dependencies. The pixi.toml's deps, lockfile, and environment are completely ignored at runtime.
Additionally, convert_to_conda_dependencies() silently drops [pypi-dependencies] when importing — only conda deps make it through. This defeats pixi's main value proposition of handling both conda and pip deps in a single lockfile-resolved environment.
Current state
- Detection: ✅
find_pixi_toml()walk-up works,PixiInfostruct parses deps/channels/pypi-deps - Kernel launch: ❌
conda:pixifalls through to wildcard match, grabs a generic pooled env - PyPI deps: ❌ Dropped on import (
convert_to_conda_dependenciesonly converts conda deps) - Pixi CLI: ❌ Never invoked — no
pixi run, nopixi install, no bootstrapping
Proposed approach
pixi runlaunch path — whenconda:pixiis detected, launch viapixi run python -m ipykernel_launcher -f <conn_file>in the project directory. Skip the pool. This uses pixi's lockfile-resolved env with both conda and pip deps.- Pixi CLI bootstrapping — add
get_pixi_path()tokernel_launch::tools(bootstrap via rattler from conda-forge, same pattern as deno/uv) - Handle
[tool.pixi]inpyproject.toml— currentlypyproject.tomlalways maps touv:pyproject, but pixi can be configured there too. Need detection for this case. - Fix PyPI dep handling in import — when importing pixi deps to notebook metadata, include pip deps
h/t @rahuldave
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels