Skip to content

Commit 593b12a

Browse files
committed
Debug notebooks test - create custom kernel
1 parent f6e96a2 commit 593b12a

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

.ci_support/kenerl.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"argv": [
3+
"flux",
4+
"start",
5+
"/home/runner/miniconda3/bin/python",
6+
"-m",
7+
"ipykernel_launcher",
8+
"-f",
9+
"{connection_file}"
10+
],
11+
"display_name": "flux",
12+
"language": "python",
13+
"metadata": {
14+
"debugger": true
15+
}
16+
}

.github/workflows/pipeline.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ jobs:
147147
- uses: actions/checkout@v4
148148
- name: Merge Notebook environment
149149
run: |
150+
mkdir -p /home/runner/.local/share/jupyter/kernels/flux
151+
cp .ci_support/kernel.json /home/runner/.local/share/jupyter/kernels/flux
150152
cp binder/environment.yml environment.yml
151153
tail --lines=+4 .ci_support/environment-notebooks.yml >> environment.yml
152154
echo -e "channels:\n - conda-forge\n" > .condarc
@@ -165,8 +167,8 @@ jobs:
165167
timeout-minutes: 5
166168
run: |
167169
papermill notebooks/1-single-node.ipynb notebooks/1-single-node-out.ipynb -k python3
168-
flux start papermill notebooks/2-hpc-cluster.ipynb notebooks/2-hpc-cluster-out.ipynb -k python3
169-
flux start papermill notebooks/3-hpc-job.ipynb notebooks/3-hpc-job-out.ipynb -k python3
170+
papermill notebooks/2-hpc-cluster.ipynb notebooks/2-hpc-cluster-out.ipynb -k flux
171+
papermill notebooks/3-hpc-job.ipynb notebooks/3-hpc-job-out.ipynb -k flux
170172
papermill notebooks/4-developer.ipynb notebooks/4-developer-out.ipynb -k python3
171173
172174
notebooks_integration:

0 commit comments

Comments
 (0)