From 45073d2199a3cf3fac0e787d9413816293dade4c Mon Sep 17 00:00:00 2001
From: auphelia <jakobapk@web.de>
Date: Thu, 5 Dec 2019 11:20:54 +0000
Subject: [PATCH] [notebook - code gen] Added layout for code generation
 notebook

---
 .../FINN-CodeGenerationAndCompilation.ipynb   | 67 +++++++++++++++++++
 1 file changed, 67 insertions(+)
 create mode 100644 notebooks/FINN-CodeGenerationAndCompilation.ipynb

diff --git a/notebooks/FINN-CodeGenerationAndCompilation.ipynb b/notebooks/FINN-CodeGenerationAndCompilation.ipynb
new file mode 100644
index 000000000..d8a33d153
--- /dev/null
+++ b/notebooks/FINN-CodeGenerationAndCompilation.ipynb
@@ -0,0 +1,67 @@
+{
+ "cells": [
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "# FINN - Code Generation and Compilation\n",
+    "<font size=\"3\">This notebook should give a more detailed insight into the code generation and compilation within FINN. </font>"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "## Outline\n",
+    "*"
+   ]
+  },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "<font size=\"3\">Following showSrc function is used to print the source code of function calls in the Jupyter notebook: </font>"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": 1,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "import inspect\n",
+    "\n",
+    "def showSrc(what):\n",
+    "    print(\"\".join(inspect.getsourcelines(what)[0]))"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": null,
+   "metadata": {},
+   "outputs": [],
+   "source": []
+  }
+ ],
+ "metadata": {
+  "kernelspec": {
+   "display_name": "Python 3",
+   "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.6.8"
+  }
+ },
+ "nbformat": 4,
+ "nbformat_minor": 2
+}
-- 
GitLab