Skip to content

Commit 7496e67

Browse files
authored
Merge pull request #46 from danielballan/binder-overrides
Binder integration
2 parents 2bb26e6 + 50420a5 commit 7496e67

File tree

7 files changed

+14
-6
lines changed

7 files changed

+14
-6
lines changed
File renamed without changes.

.binder/postBuild

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
set -eux
3+
4+
mkdir -p ${NB_PYTHON_PREFIX}/share/jupyter/lab/settings
5+
cp .binder/overrides.json ${NB_PYTHON_PREFIX}/share/jupyter/lab/settings/overrides.json

.binder/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-r ../requirements.txt

conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,7 @@
5353
"use_repository_button": True,
5454
"use_issues_button": True,
5555
"use_edit_page_button": True,
56+
"launch_buttons": {
57+
"binderhub_url": "https://mybinder.org"
58+
},
5659
}

pixi.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ start = "jupyter lab"
2626
test = "bash ./test.sh"
2727

2828
[activation]
29-
scripts = ["setup_jupyterlab_config.sh"]
29+
# Workaround overrides JupyterLab configuration (at the environment level) to
30+
# make double-clicking on a Jupytext Markdown file open that file as a
31+
# notebook. This is important for the development workflow for contributors.
32+
scripts = ["bash .binder/postBuild"]
3033

3134
[dependencies]
3235
python = ">=3.11"

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ pytest
1111
nbval
1212
pytest-custom_exit_code
1313
jupytext
14+
jupyterlab-myst

setup_jupyterlab_config.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)