Skip to content

Commit c681add

Browse files
feat: Add .binder directory with config files
* For reproducibility dynamically create the environment from the Pixi lock file that uses postBuild and runtime.txt. * Move apt.txt under .binder/ directory
1 parent 8ba0286 commit c681add

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

File renamed without changes.

.binder/postBuild

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
3+
set -ex
4+
5+
# Install Pixi
6+
curl -fsSL https://pixi.sh/install.sh | sh
7+
echo 'eval "$(pixi completion --shell bash)"' >> ~/.bashrc
8+
. ~/.bashrc
9+
# Sourcing ~/.bashrc doesn't seem to pick up changes, so manually set PATH
10+
export PATH="~/.pixi/bin:${PATH}"
11+
12+
# Export workspace to conda explicit spec
13+
pixi workspace export conda-explicit-spec --platform linux-64 .binder/
14+
15+
# Install environment
16+
mamba install --name notebook --file .binder/default_linux-64_conda_spec.txt

.binder/runtime.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
python-3.13

0 commit comments

Comments
 (0)