diff --git a/module2/exo1/speel_schrijfboekje.ipynb b/module2/exo1/speel_schrijfboekje.ipynb index 0115cd27069f04dcfcf449134d62377488c4258b..4ef01e5a6b0112941b0921c451cbaa8a226f97a3 100644 --- a/module2/exo1/speel_schrijfboekje.ipynb +++ b/module2/exo1/speel_schrijfboekje.ipynb @@ -74,31 +74,9 @@ "hidePrompt": false }, "source": [ - "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()" + "Dit is een doodgewone tekst over de constante `e` met waarde {{y}}\n", + "\n", + "$P(A \\mid B) = \\frac{P(B \\mid A)P(A)}{P(B)}$" ] }, { @@ -123,6 +101,44 @@ "os.system('jupyter nbconvert --to html speel_schrijfboekje.ipynb')" ] }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "cars.png\t\t toy_document_orgmode_python_en.org\r\n", + "cosxsx.png\t\t toy_document_orgmode_python_fr.org\r\n", + "speel_schrijfboekje.html toy_document_orgmode_R_en.org\r\n", + "speel_schrijfboekje.ipynb toy_document_orgmode_R_fr.org\r\n", + "toy_document_en.Rmd\t toy_notebook_en.ipynb\r\n", + "toy_document_fr.Rmd\t toy_notebook_fr.ipynb\r\n" + ] + } + ], + "source": [ + "!ls" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [], + "source": [ + "%pycat toy_document_en.Rmd" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "$P(A \\mid B) = \\frac{P(B \\mid A)P(A)}{P(B)}$" + ] + }, { "cell_type": "code", "execution_count": null,