Skip to content

Commit

Permalink
Add binder environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Apr 26, 2024
1 parent e84fbd6 commit e720584
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
package=$(echo "$PR_TITLE" | awk '{print $2}')
from=$(echo "$PR_TITLE" | awk '{print $4}')
to=$(echo "$PR_TITLE" | awk '{print $6}')
sed -i "/${package}/s/${from}/${to}/g" binder/environment.yml
sed -i "/${package}/s/${from}/${to}/g" .ci_support/environment.yml
sed -i "/${package}/s/${from}/${to}/g" .ci_support/environment-docs.yml
- name: UpdateDependabotPR commit
Expand Down
13 changes: 13 additions & 0 deletions binder/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
channels:
- conda-forge
dependencies:
- defusedxml =0.7.1
- coverage
- pandas =2.2.2
- pyyaml =6.0.1
- jinja2 =3.1.3
- paramiko =3.4.0
- tqdm =4.66.2
- pympipool =0.8.1
- cloudpickle =3.0.0
- flux-core =0.59.0
16 changes: 16 additions & 0 deletions binder/kernel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"argv": [
"flux",
"start",
"/srv/conda/envs/notebook/bin/python",
"-m",
"ipykernel_launcher",
"-f",
"{connection_file}"
],
"display_name": "Flux",
"language": "python",
"metadata": {
"debugger": true
}
}
6 changes: 6 additions & 0 deletions binder/postBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# jupyter kernel
mkdir -p /home/jovyan/.local/share/jupyter/kernels/flux
cp binder/kernel.json /home/jovyan/.local/share/jupyter/kernels/flux

# install pympipool
pip install . --no-deps --no-build-isolation

0 comments on commit e720584

Please sign in to comment.