-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I'm trying out using Pixi for managing our Conda and Pypi environment in place of Mamba. pixi-kernel replaces nb-conda-kernels to allow us to support per-project environments. I'm using features to capture each tutorial, then adding the tutorial feature to the default environment. The `[dependencies]` table captures our base dependencies, though we might want to refactor them out into features as well ('jupyterlab support', 'cli', 'storage', 'fast xarray',...). You can test the lab locally with either `pixi run lab` or `docker compose up py`. There is one little oddity I know of right now in the pixi workflow. If you create a new directory ((like a project), `pixi init`, then following pixi commands don't target that manifest as normal. ``` $ pixi init Initialized project in /home/jovyan/test/. $ pixi add fastapi WARN Using manifest /home/jovyan/pixi.toml from `PIXI_PROJECT_MANIFEST` rather than local /home/jovyan/test/pixi.toml ``` This is because the image has already set a `pixi shell` (well `pixi shell-hook`) to force pixi to look for a specific manifest and recorded that in an environment variable. Pixi will warn that it's using a different manifest, but its easy to screw that up. Running `pixi shell --manifest-path ./pixi.toml` will set the pixi scope to the current environment. ``` $ pixi shell --manifest-path ./pixi.toml . "/tmp/pixi_env_WOz.sh" jovyan@e5cb7d16120a:~/test$ . "/tmp/pixi_env_WOz.sh" (test) jovyan@e5cb7d16120a:~/test$ pixi add fastapi ```
- Loading branch information
Showing
9 changed files
with
18,640 additions
and
847 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -102,3 +102,6 @@ venv.bak/ | |
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
# Mac | ||
**/.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# GitHub syntax highlighting | ||
pixi.lock linguist-language=YAML | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# pixi environments | ||
.pixi | ||
*.egg-info | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.