From d213fd427dd7b6722a0861ed58ac2d84366cec99 Mon Sep 17 00:00:00 2001
From: Patrick Chabrier <patrick.chabrier@inrae.fr>
Date: Tue, 13 Sep 2022 16:42:53 +0200
Subject: [PATCH] binder: enable

---
 README.md              |  2 +-
 binder/environment.yml | 10 ++++++++++
 binder/postBuild       |  7 +++++++
 3 files changed, 18 insertions(+), 1 deletion(-)
 create mode 100644 binder/environment.yml
 create mode 100644 binder/postBuild

diff --git a/README.md b/README.md
index 9f83a9a..31e711b 100644
--- a/README.md
+++ b/README.md
@@ -41,7 +41,7 @@ pip install -e .
 
 ### The Binder way
 
-[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/git/https%3A%2F%2Fforgemia.inra.fr%2Fgame-theory-tools-group%2Fnash-eq-wilson-to-binder/HEAD)
+[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/git/https%3A%2F%2Fforgemia.inra.fr%2Fgame-theory-tools-group%2Fgtnash/HEAD)
 
 
 This repository is hosting a Dockerfile enabling binder to expose the GTNash project Notebooks.
diff --git a/binder/environment.yml b/binder/environment.yml
new file mode 100644
index 0000000..b9a7337
--- /dev/null
+++ b/binder/environment.yml
@@ -0,0 +1,10 @@
+# inspired by https://github.com/enriqueartal/QuadraticFormSingularity
+name: sage-binder-env
+
+channels:
+  - conda-forge
+  - defaults
+dependencies:
+  - jupyterlab
+  - ipywidgets
+  - sage=9.6
diff --git a/binder/postBuild b/binder/postBuild
new file mode 100644
index 0000000..853b299
--- /dev/null
+++ b/binder/postBuild
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+# removing some unwanted files and folders
+rm -rf docker
+
+# local install of the gtnash python package
+sage -pip install -e .
-- 
GitLab