diff --git a/module2/exo1/speel_schrijfboekje.html b/module2/exo1/speel_schrijfboekje.html new file mode 100644 index 0000000000000000000000000000000000000000..cf4faeedf776c83f80380121794d195bebb124a2 --- /dev/null +++ b/module2/exo1/speel_schrijfboekje.html @@ -0,0 +1,13281 @@ + + + + +speel_schrijfboekje + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+
+

Hoofdstuk1

Dit is de eerste regel van hoofdstuk1

+ +
+
+
+
+
+
In [2]:
+
+
+
x =3.1415
+print(x)
+print(x+1)
+
+ +
+
+
+ +
+
+ + +
+ +
+ + +
+
3.1415
+4.141500000000001
+
+
+
+ +
+
+ +
+
+
+
+

Hoofdstuk2

Dit is de eerste regel van hoofdstuk2

+ +
+
+
+
+
+
In [7]:
+
+
+
import math
+y = math.exp(1)
+print(y)
+
+ +
+
+
+ +
+
+ + +
+ +
+ + +
+
2.718281828459045
+
+
+
+ +
+
+ +
+
+
+
+

Dit is een doodgewone tekst over de constante e met waarde {{y}}

+ +
+
+
+
+
+
In [3]:
+
+
+
from pydataset import data
+quakes = data('quakes')
+quakes.head()
+quakes.tail()
+
+ +
+
+
+ +
+
+ + +
+ +
+ + +
+
+---------------------------------------------------------------------------
+ModuleNotFoundError                       Traceback (most recent call last)
+<ipython-input-3-4a7513b8eb8a> in <module>
+----> 1 from pydataset import data
+      2 quakes = data('quakes')
+      3 quakes.head()
+      4 quakes.tail()
+
+ModuleNotFoundError: No module named 'pydataset'
+
+
+ +
+
+ +
+
+
+
In [4]:
+
+
+
import os
+
+os.system('jupyter nbconvert --to html speel_schrijfboekje.ipynb')
+
+ +
+
+
+ +
+
+ + +
+ +
Out[4]:
+ + + + +
+
0
+
+ +
+ +
+
+ +
+
+
+
In [ ]:
+
+
+
 
+
+ +
+
+
+ +
+
+
+ + + + + + diff --git a/module2/exo1/speel_schrijfboekje.ipynb b/module2/exo1/speel_schrijfboekje.ipynb index 2a63835d4e7a9c8c335826ac8c55965094cc04f4..6e8365787cdc559d07c9f40f334e44fd9c1298f2 100644 --- a/module2/exo1/speel_schrijfboekje.ipynb +++ b/module2/exo1/speel_schrijfboekje.ipynb @@ -23,13 +23,15 @@ "name": "stdout", "output_type": "stream", "text": [ - "3.1415\n" + "3.1415\n", + "4.141500000000001\n" ] } ], "source": [ "x =3.1415\n", - "print(x)" + "print(x)\n", + "print(x+1)" ] }, { @@ -72,8 +74,61 @@ "hidePrompt": false }, "source": [ - "Dit is een doodgewone tekst over de contante `e` met waarde {{y}}" + "Dit is een doodgewone tekst over de constante `e` met waarde {{y}}" ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [ + { + "ename": "ModuleNotFoundError", + "evalue": "No module named 'pydataset'", + "output_type": "error", + "traceback": [ + "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", + "\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)", + "\u001b[0;32m\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;32mfrom\u001b[0m \u001b[0mpydataset\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mdata\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 2\u001b[0m \u001b[0mquakes\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mdata\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'quakes'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0mquakes\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mhead\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 4\u001b[0m \u001b[0mquakes\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mtail\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", + "\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'pydataset'" + ] + } + ], + "source": [ + "from pydataset import data\n", + "quakes = data('quakes')\n", + "quakes.head()\n", + "quakes.tail()" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "0" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import os\n", + "\n", + "os.system('jupyter nbconvert --to html speel_schrijfboekje.ipynb')" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": {