Skip to content

Commit

Permalink
Properly open notebooks on Binder
Browse files Browse the repository at this point in the history
  • Loading branch information
astrojuanlu committed Nov 30, 2021
1 parent 4962a4c commit 2ae9bf3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
9 changes: 9 additions & 0 deletions binder/labconfig/default_setting_overrides.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"@jupyterlab/docmanager-extension:plugin": {
"defaultViewers": {
"markdown": "Jupytext Notebook",
"jupytext-md": "Jupytext Notebook"
}
}
}

6 changes: 6 additions & 0 deletions binder/postBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Stop everything if one command fails
set -e

# See https://github.com/mwouts/jupytext/issues/803#issuecomment-982170660
mkdir -p ${HOME}/.jupyter/labconfig
cp binder/labconfig/* ${HOME}/.jupyter/labconfig
3 changes: 2 additions & 1 deletion binder/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# For application deployments, like Binder
git+https://github.com/poliastro/poliastro.git#egg=poliastro
jupytext

jupytext>=1.13.2 # https://github.com/mwouts/jupytext/issues/271

0 comments on commit 2ae9bf3

Please sign in to comment.