From 08ac75e220c2580e832f47bb5385a1eb1b6059ae Mon Sep 17 00:00:00 2001
From: Uwe Schmitt <uwe.schmitt@id.ethz.ch>
Date: Tue, 25 Jun 2019 12:01:47 +0200
Subject: [PATCH] added create_course_scripts_zip.sh

---
 .gitignore                   |  3 +++
 01_introduction.ipynb        |  8 +++++---
 create_course_scripts_zip.sh | 25 +++++++++++++++++++++++++
 3 files changed, 33 insertions(+), 3 deletions(-)
 create mode 100755 create_course_scripts_zip.sh

diff --git a/.gitignore b/.gitignore
index 69659e9..f94fe13 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,6 @@ temp*
 Untitled*.ipynb
 **/.*.sw?
 .sw?
+
+ml_course_script_html.zip
+ml_course_script_html
diff --git a/01_introduction.ipynb b/01_introduction.ipynb
index a448e2f..8fda601 100644
--- a/01_introduction.ipynb
+++ b/01_introduction.ipynb
@@ -391,7 +391,8 @@
     "<ul>\n",
     "    <li>The first four features have continuous numerical values within some ranges - these are called <strong>numerical features</strong>,</li>\n",
     "    <li>the <code>is_yummy</code> feature has only a finite set of values (\"categories\"): <code>0</code> (\"no\") and <code>1</code> (\"yes\") - this is called a <strong>categorical feature</strong>.</li>\n",
-    "</ul>\n"
+    "</ul>\n",
+    "    </div>\n"
    ]
   },
   {
@@ -411,7 +412,8 @@
     "            <li>Values of categorical labels, such as <code>0</code> (\"no\") and <code>1</code> (\"yes\") here, are often called <strong>classes</strong>.</li>\n",
     "        </ul>\n",
     "    </li>\n",
-    "</ul>"
+    "</ul>\n",
+    "</div>"
    ]
   },
   {
@@ -1960,7 +1962,7 @@
    "name": "python",
    "nbconvert_exporter": "python",
    "pygments_lexer": "ipython3",
-   "version": "3.7.3"
+   "version": "3.7.2"
   },
   "latex_envs": {
    "LaTeX_envs_menu_present": true,
diff --git a/create_course_scripts_zip.sh b/create_course_scripts_zip.sh
new file mode 100755
index 0000000..e1ef623
--- /dev/null
+++ b/create_course_scripts_zip.sh
@@ -0,0 +1,25 @@
+#! /bin/sh
+#
+# create_course_scripts_zip.sh
+# Copyright (C) 2019 Uwe Schitt <uwe.schmitt@id.ethz.ch>
+#
+# Distributed under terms of the MIT license.
+#
+
+FOLDER=ml_course_script_html
+ARCHIVE=${FOLDER}.zip
+
+rm -rf ${FOLDER} || true
+mkdir ${FOLDER}
+
+cp -R images ${FOLDER}
+cp custom.html ${FOLDER}
+
+for U in ??_*.ipynb; do
+    jupyter nbconvert --output-dir=${FOLDER} $U
+done
+
+rm ${ARCHIVE} || true
+zip -r ${ARCHIVE} ${FOLDER}
+
+
-- 
GitLab