after trying some tips and tricks

parent 0e4d6966
...@@ -74,31 +74,9 @@ ...@@ -74,31 +74,9 @@
"hidePrompt": false "hidePrompt": false
}, },
"source": [ "source": [
"Dit is een doodgewone tekst over de constante `e` met waarde {{y}}" "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)}$"
{
"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<ipython-input-3-4a7513b8eb8a>\u001b[0m in \u001b[0;36m<module>\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()"
] ]
}, },
{ {
...@@ -123,6 +101,44 @@ ...@@ -123,6 +101,44 @@
"os.system('jupyter nbconvert --to html speel_schrijfboekje.ipynb')" "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", "cell_type": "code",
"execution_count": null, "execution_count": null,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment