Skip to content

Commit c79f71a

Browse files
feat(binder): add Project.toml, postBuild, and requirements.txt for Binder setup
1 parent 8e700dd commit c79f71a

3 files changed

Lines changed: 28 additions & 0 deletions

File tree

binder/Project.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Minimal Julia environment for Binder (JupyterLab)
2+
3+
[deps]
4+
IJulia = "7073ff75-c697-5162-941a-fcdaad2a7d2a"
5+
Interact = "c601a237-2ae4-5e1e-952c-7a85b0c7eef1"
6+
7+
[compat]
8+
julia = "1.11"
9+

binder/postBuild

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
set -euxo pipefail
3+
4+
# Ensure classic extensions are enabled for RISE & ipywidgets (Notebook 6.x)
5+
jupyter-nbextension install rise --py --sys-prefix || true
6+
jupyter-nbextension enable rise --py --sys-prefix || true
7+
jupyter-nbextension enable widgetsnbextension --py --sys-prefix || true
8+
9+
# Optional: ensure lab classic is available, but RISE is classic-only
10+
echo "postBuild complete"

binder/requirements.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Python packages for Binder (classic Notebook + RISE + widgets)
2+
# Pin Notebook 6.x because RISE does not support Notebook 7.
3+
4+
notebook==6.5.7
5+
nbclassic>=1.0.0
6+
rise==5.7.1
7+
ipywidgets==8.1.3
8+
widgetsnbextension==4.0.10
9+
jupyterlab>=4

0 commit comments

Comments
 (0)