From 07be50653aadd685ca1694e514f5f1d3eddcbeaf Mon Sep 17 00:00:00 2001
From: Steffen Remus <steffen.remus@uni-hamburg.de>
Date: Wed, 8 May 2024 11:56:28 +0000
Subject: [PATCH] sync

---
 bin/test.py         | 11 ++++++
 live-examples.ipynb | 81 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 92 insertions(+)
 create mode 100644 bin/test.py
 create mode 100644 live-examples.ipynb

diff --git a/bin/test.py b/bin/test.py
new file mode 100644
index 0000000..060028c
--- /dev/null
+++ b/bin/test.py
@@ -0,0 +1,11 @@
+"""One-line description of what the script does."""
+
+import sys
+
+def main(name):
+    """Run the program."""
+    print(f'Hello {name}')
+
+if __name__ == '__main__':
+    args = sys.argv[1:]
+    main(*args)
\ No newline at end of file
diff --git a/live-examples.ipynb b/live-examples.ipynb
new file mode 100644
index 0000000..0c4365d
--- /dev/null
+++ b/live-examples.ipynb
@@ -0,0 +1,81 @@
+{
+ "cells": [
+  {
+   "attachments": {},
+   "cell_type": "raw",
+   "id": "5d9ab2e2-37ce-493b-81c7-efbdd1956a85",
+   "metadata": {},
+   "source": [
+    "### display some information\n",
+    "print('hello world')"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "id": "04c956b8-9980-4390-8b7a-eb48168be0fa",
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "%magic"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": 15,
+   "id": "49748b35-57b3-4aad-b442-911ef581e7f4",
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "from bin import test"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": 16,
+   "id": "a5f84be5-ef09-443d-866c-479107193546",
+   "metadata": {},
+   "outputs": [
+    {
+     "name": "stdout",
+     "output_type": "stream",
+     "text": [
+      "Hello Steffen\n"
+     ]
+    }
+   ],
+   "source": [
+    "test.main('Steffen')"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "id": "70008ef5-ba71-475d-95c8-abb4cb23325e",
+   "metadata": {},
+   "outputs": [],
+   "source": []
+  }
+ ],
+ "metadata": {
+  "kernelspec": {
+   "display_name": "Python 3 (ipykernel)",
+   "language": "python",
+   "name": "python3"
+  },
+  "language_info": {
+   "codemirror_mode": {
+    "name": "ipython",
+    "version": 3
+   },
+   "file_extension": ".py",
+   "mimetype": "text/x-python",
+   "name": "python",
+   "nbconvert_exporter": "python",
+   "pygments_lexer": "ipython3",
+   "version": "3.11.2"
+  }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 5
+}
-- 
GitLab