Skip to content

Commit bef14bf

Browse files
committed
init script
1 parent 73efe64 commit bef14bf

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

sspcloud/init-trainees.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
WORK_DIR="/home/onyxia/work"
4+
GITHUB_REPOSITORY="https://github.com/InseeFrLab/AIML4OS-template-quarto-python.git"
5+
NOTEBOOK_DOWNLOAD_URL="https://inseefrlab.github.io/AIML4OS-template-quarto-python/chapters/chapter1.ipynb"
6+
7+
8+
# Download the pyproject.toml directly using git
9+
echo $GITHUB_REPOSITORY
10+
git clone --depth 1 $GITHUB_REPOSITORY temp
11+
12+
# Install dependencies in system env
13+
uv pip install -r temp/pyproject.toml --system
14+
rm -rf temp
15+
16+
# Download the notebook directly using curl
17+
echo $NOTEBOOK_DOWNLOAD_URL
18+
curl -L $NOTEBOOK_DOWNLOAD_URL -o "${WORK_DIR}/exercise.ipynb"
19+
20+
code-server --install-extension quarto.quarto

0 commit comments

Comments
 (0)