From 0d9f27bf57d36765eeebab11e26f9427affdaac1 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Tue, 5 Oct 2021 13:57:05 +0200 Subject: [PATCH 1/2] Add commands to generate student version --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index aac1e57..1f1012a 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,31 @@ In case you do not want to install everything and just want to try out the cours Found any typo or have a suggestion, see [how to contribute](./CONTRIBUTING.md). +## Development + +In addition to the environment.yml, install the following packages: + +``` +conda install jupytext jlab-enhanced-cell-toolbar nbdime +``` + +Creating the student version materials from this repo: + +``` +git clone https://github.com/jorisvandenbossche/DS-python-geospatial.git DS-python-geospatial-2012 +git clone https://github.com/jorisvandenbossche/course-python-geospatial.git course-python-geospatial-clean + +cp course-python-geospatial-clean/notebooks/*.ipynb DS-python-geospatial-2021/_solved/ +cp course-python-geospatial-clean/notebooks/data/ DS-python-geospatial-2021/notebooks/ -r +cp course-python-geospatial-clean/img/ DS-python-geospatial-2021/ -r +cp course-python-geospatial-clean/environment.yml DS-python-geospatial-2021/ +cp course-python-geospatial-clean/check_environment.py DS-python-geospatial-2021/ + +cd DS-python-geospatial-2021/ +./convert_notebooks.sh +``` + + ## Meta Authors: Joris Van den Bossche, Stijn Van Hoey From 7e82c26feadbe1b58c57c61443dc3ac1d486c5ab Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Sun, 20 Nov 2022 15:35:50 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 1f1012a..0eaaffa 100644 --- a/README.md +++ b/README.md @@ -42,20 +42,21 @@ conda install jupytext jlab-enhanced-cell-toolbar nbdime Creating the student version materials from this repo: ``` -git clone https://github.com/jorisvandenbossche/DS-python-geospatial.git DS-python-geospatial-2012 -git clone https://github.com/jorisvandenbossche/course-python-geospatial.git course-python-geospatial-clean +export COURSE_DIR="DS-python-geospatial-2022" -cp course-python-geospatial-clean/notebooks/*.ipynb DS-python-geospatial-2021/_solved/ -cp course-python-geospatial-clean/notebooks/data/ DS-python-geospatial-2021/notebooks/ -r -cp course-python-geospatial-clean/img/ DS-python-geospatial-2021/ -r -cp course-python-geospatial-clean/environment.yml DS-python-geospatial-2021/ -cp course-python-geospatial-clean/check_environment.py DS-python-geospatial-2021/ +git clone https://github.com/jorisvandenbossche/DS-python-geospatial.git $COURSE_DIR +git clone https://github.com/jorisvandenbossche/course-python-geospatial.git course-python-geospatial-clean -cd DS-python-geospatial-2021/ +cp course-python-geospatial-clean/notebooks/*.ipynb $COURSE_DIR/_solved/ +cp course-python-geospatial-clean/notebooks/data/ $COURSE_DIR/notebooks/ -r +cp course-python-geospatial-clean/img/ $COURSE_DIR/ -r +cp course-python-geospatial-clean/environment.yml $COURSE_DIR/ +cp course-python-geospatial-clean/check_environment.py $COURSE_DIR/ +cd $COURSE_DIR/ ./convert_notebooks.sh +jupyter nbconvert --clear-output _solved/*.ipynb ``` - ## Meta Authors: Joris Van den Bossche, Stijn Van Hoey