We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73efe64 commit bef14bfCopy full SHA for bef14bf
1 file changed
sspcloud/init-trainees.sh
@@ -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