diff --git a/module2/exo1/speel_schrijfboekje.html b/module2/exo1/speel_schrijfboekje.html index c8a7f2358f1550bcb19725cd7bfb38cef312f575..768f921b2d834dd76323f80b0daee4f6edf18a63 100644 --- a/module2/exo1/speel_schrijfboekje.html +++ b/module2/exo1/speel_schrijfboekje.html @@ -13177,19 +13177,21 @@ div#notebook {

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

+

$P(A \mid B) = \frac{P(B \mid A)P(A)}{P(B)}$

-
In [3]:
+
In [5]:
-
from pydataset import data
-quakes = data('quakes')
-quakes.head()
-quakes.tail()
+
import sys
+print(sys.version)
+
+import os
+os.system('jupyter nbconvert --to html speel_schrijfboekje.ipynb')
 
@@ -13205,18 +13207,24 @@ div#notebook {
-
-
----------------------------------------------------------------------------
-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()
+
+
3.6.4 |Anaconda, Inc.| (default, Mar 13 2018, 01:15:57) 
+[GCC 7.2.0]
+
+
+
-ModuleNotFoundError: No module named 'pydataset' +
+ +
Out[5]:
+ + + + +
+
0
+
@@ -13225,12 +13233,60 @@ div#notebook {
-
In [5]:
+
In [1]:
-
import os
+
!ls
+
-os.system('jupyter nbconvert --to html speel_schrijfboekje.ipynb') +
+
+
+ +
+
+ + +
+ +
+ + +
+
cars.png		   toy_document_orgmode_python_en.org
+cosxsx.png		   toy_document_orgmode_python_fr.org
+speel_schrijfboekje.html   toy_document_orgmode_R_en.org
+speel_schrijfboekje.ipynb  toy_document_orgmode_R_fr.org
+toy_document_en.Rmd	   toy_notebook_en.ipynb
+toy_document_fr.Rmd	   toy_notebook_fr.ipynb
+
+
+
+ +
+
+ +
+
+
+
In [1]:
+
+
+
%load_ext rpy2.ipython
+
+ +
+
+
+ +
+
+
+
In [3]:
+
+
+
%%R
+sessionInfo()
 
@@ -13243,13 +13299,35 @@ div#notebook {
-
Out[5]:
+
-
-
0
+
+
R version 3.4.1 (2017-06-30)
+Platform: x86_64-pc-linux-gnu (64-bit)
+Running under: Ubuntu 18.04.3 LTS
+
+Matrix products: default
+BLAS: /opt/conda/lib/R/lib/libRblas.so
+LAPACK: /opt/conda/lib/R/lib/libRlapack.so
+
+locale:
+ [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
+ [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
+ [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
+ [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
+ [9] LC_ADDRESS=C               LC_TELEPHONE=C            
+[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
+
+attached base packages:
+[1] tools     stats     graphics  grDevices utils     datasets  methods  
+[8] base     
+
+loaded via a namespace (and not attached):
+[1] compiler_3.4.1
+
diff --git a/module2/exo1/speel_schrijfboekje.ipynb b/module2/exo1/speel_schrijfboekje.ipynb index 4ef01e5a6b0112941b0921c451cbaa8a226f97a3..b13e6f1f3b45fb5534672ff2d44feadbe1b087c4 100644 --- a/module2/exo1/speel_schrijfboekje.ipynb +++ b/module2/exo1/speel_schrijfboekje.ipynb @@ -84,6 +84,14 @@ "execution_count": 6, "metadata": {}, "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "3.6.4 |Anaconda, Inc.| (default, Mar 13 2018, 01:15:57) \n", + "[GCC 7.2.0]\n" + ] + }, { "data": { "text/plain": [ @@ -96,8 +104,10 @@ } ], "source": [ - "import os \n", + "import sys\n", + "print(sys.version)\n", "\n", + "import os\n", "os.system('jupyter nbconvert --to html speel_schrijfboekje.ipynb')" ] }, @@ -125,26 +135,124 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ - "%pycat toy_document_en.Rmd" + "%load_ext rpy2.ipython" ] }, { - "cell_type": "markdown", + "cell_type": "code", + "execution_count": 3, "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "R version 3.4.1 (2017-06-30)\n", + "Platform: x86_64-pc-linux-gnu (64-bit)\n", + "Running under: Ubuntu 18.04.3 LTS\n", + "\n", + "Matrix products: default\n", + "BLAS: /opt/conda/lib/R/lib/libRblas.so\n", + "LAPACK: /opt/conda/lib/R/lib/libRlapack.so\n", + "\n", + "locale:\n", + " [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C \n", + " [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 \n", + " [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 \n", + " [7] LC_PAPER=en_US.UTF-8 LC_NAME=C \n", + " [9] LC_ADDRESS=C LC_TELEPHONE=C \n", + "[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C \n", + "\n", + "attached base packages:\n", + "[1] tools stats graphics grDevices utils datasets methods \n", + "[8] base \n", + "\n", + "loaded via a namespace (and not attached):\n", + "[1] compiler_3.4.1\n" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], "source": [ - "$P(A \\mid B) = \\frac{P(B \\mid A)P(A)}{P(B)}$" + "%%R\n", + "sessionInfo()" ] }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "metadata": {}, - "outputs": [], - "source": [] + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "Usage: \n", + " /opt/conda/bin/python -m pip [options]\n", + "\n", + "Commands:\n", + " install Install packages.\n", + " download Download packages.\n", + " uninstall Uninstall packages.\n", + " freeze Output installed packages in requirements format.\n", + " list List installed packages.\n", + " show Show information about installed packages.\n", + " check Verify installed packages have compatible dependencies.\n", + " config Manage local and global configuration.\n", + " search Search PyPI for packages.\n", + " wheel Build wheels from your requirements.\n", + " hash Compute hashes of package archives.\n", + " completion A helper command used for command completion.\n", + " debug Show information useful for debugging.\n", + " help Show help for commands.\n", + "\n", + "General Options:\n", + " -h, --help Show help.\n", + " --isolated Run pip in an isolated mode, ignoring\n", + " environment variables and user configuration.\n", + " -v, --verbose Give more output. Option is additive, and can be\n", + " used up to 3 times.\n", + " -V, --version Show version and exit.\n", + " -q, --quiet Give less output. Option is additive, and can be\n", + " used up to 3 times (corresponding to WARNING,\n", + " ERROR, and CRITICAL logging levels).\n", + " --log Path to a verbose appending log.\n", + " --proxy Specify a proxy in the form\n", + " [user:passwd@]proxy.server:port.\n", + " --retries Maximum number of retries each connection should\n", + " attempt (default 5 times).\n", + " --timeout Set the socket timeout (default 15 seconds).\n", + " --exists-action Default action when a path already exists:\n", + " (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.\n", + " --trusted-host Mark this host or host:port pair as trusted,\n", + " even though it does not have valid or any HTTPS.\n", + " --cert Path to alternate CA bundle.\n", + " --client-cert Path to SSL client certificate, a single file\n", + " containing the private key and the certificate\n", + " in PEM format.\n", + " --cache-dir Store the cache data in .\n", + " --no-cache-dir Disable the cache.\n", + " --disable-pip-version-check\n", + " Don't periodically check PyPI to determine\n", + " whether a new version of pip is available for\n", + " download. Implied with --no-index.\n", + " --no-color Suppress colored output\n", + " --no-python-version-warning\n", + " Silence deprecation warnings for upcoming\n", + " unsupported Pythons.\n", + "Note: you may need to restart the kernel to use updated packages.\n" + ] + } + ], + "source": [ + "pip -help" + ] } ], "metadata": {