added version inquiry for R and Python (3.4.1. and 3.6.4)

parent b99bfc0d
......@@ -13177,19 +13177,21 @@ div#notebook {
</div><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<p>Dit is een doodgewone tekst over de constante <code>e</code> met waarde {{y}}</p>
<p>$P(A \mid B) = \frac{P(B \mid A)P(A)}{P(B)}$</p>
</div>
</div>
</div>
<div class="cell border-box-sizing code_cell rendered">
<div class="input">
<div class="prompt input_prompt">In&nbsp;[3]:</div>
<div class="prompt input_prompt">In&nbsp;[5]:</div>
<div class="inner_cell">
<div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="kn">from</span> <span class="nn">pydataset</span> <span class="kn">import</span> <span class="n">data</span>
<span class="n">quakes</span> <span class="o">=</span> <span class="n">data</span><span class="p">(</span><span class="s1">&#39;quakes&#39;</span><span class="p">)</span>
<span class="n">quakes</span><span class="o">.</span><span class="n">head</span><span class="p">()</span>
<span class="n">quakes</span><span class="o">.</span><span class="n">tail</span><span class="p">()</span>
<div class=" highlight hl-ipython3"><pre><span></span><span class="kn">import</span> <span class="nn">sys</span>
<span class="nb">print</span><span class="p">(</span><span class="n">sys</span><span class="o">.</span><span class="n">version</span><span class="p">)</span>
<span class="kn">import</span> <span class="nn">os</span>
<span class="n">os</span><span class="o">.</span><span class="n">system</span><span class="p">(</span><span class="s1">&#39;jupyter nbconvert --to html speel_schrijfboekje.ipynb&#39;</span><span class="p">)</span>
</pre></div>
</div>
......@@ -13205,18 +13207,24 @@ div#notebook {
<div class="prompt"></div>
<div class="output_subarea output_text output_error">
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">ModuleNotFoundError</span> Traceback (most recent call last)
<span class="ansi-green-fg">&lt;ipython-input-3-4a7513b8eb8a&gt;</span> in <span class="ansi-cyan-fg">&lt;module&gt;</span>
<span class="ansi-green-fg">----&gt; 1</span><span class="ansi-red-fg"> </span><span class="ansi-green-fg">from</span> pydataset <span class="ansi-green-fg">import</span> data
<span class="ansi-green-intense-fg ansi-bold"> 2</span> quakes <span class="ansi-blue-fg">=</span> data<span class="ansi-blue-fg">(</span><span class="ansi-blue-fg">&#39;quakes&#39;</span><span class="ansi-blue-fg">)</span>
<span class="ansi-green-intense-fg ansi-bold"> 3</span> quakes<span class="ansi-blue-fg">.</span>head<span class="ansi-blue-fg">(</span><span class="ansi-blue-fg">)</span>
<span class="ansi-green-intense-fg ansi-bold"> 4</span> quakes<span class="ansi-blue-fg">.</span>tail<span class="ansi-blue-fg">(</span><span class="ansi-blue-fg">)</span>
<div class="output_subarea output_stream output_stdout output_text">
<pre>3.6.4 |Anaconda, Inc.| (default, Mar 13 2018, 01:15:57)
[GCC 7.2.0]
</pre>
</div>
</div>
<span class="ansi-red-fg">ModuleNotFoundError</span>: No module named &#39;pydataset&#39;</pre>
<div class="output_area">
<div class="prompt output_prompt">Out[5]:</div>
<div class="output_text output_subarea output_execute_result">
<pre>0</pre>
</div>
</div>
</div>
......@@ -13225,12 +13233,60 @@ div#notebook {
</div>
<div class="cell border-box-sizing code_cell rendered">
<div class="input">
<div class="prompt input_prompt">In&nbsp;[5]:</div>
<div class="prompt input_prompt">In&nbsp;[1]:</div>
<div class="inner_cell">
<div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="kn">import</span> <span class="nn">os</span>
<div class=" highlight hl-ipython3"><pre><span></span><span class="o">!</span>ls
</pre></div>
<span class="n">os</span><span class="o">.</span><span class="n">system</span><span class="p">(</span><span class="s1">&#39;jupyter nbconvert --to html speel_schrijfboekje.ipynb&#39;</span><span class="p">)</span>
</div>
</div>
</div>
<div class="output_wrapper">
<div class="output">
<div class="output_area">
<div class="prompt"></div>
<div class="output_subarea output_stream output_stdout output_text">
<pre>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
</pre>
</div>
</div>
</div>
</div>
</div>
<div class="cell border-box-sizing code_cell rendered">
<div class="input">
<div class="prompt input_prompt">In&nbsp;[1]:</div>
<div class="inner_cell">
<div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="o">%</span><span class="k">load_ext</span> rpy2.ipython
</pre></div>
</div>
</div>
</div>
</div>
<div class="cell border-box-sizing code_cell rendered">
<div class="input">
<div class="prompt input_prompt">In&nbsp;[3]:</div>
<div class="inner_cell">
<div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="o">%%</span><span class="n">R</span>
<span class="nf">sessionInfo</span><span class="p">()</span>
</pre></div>
</div>
......@@ -13243,13 +13299,35 @@ div#notebook {
<div class="output_area">
<div class="prompt output_prompt">Out[5]:</div>
<div class="prompt"></div>
<div class="output_text output_subarea output_execute_result">
<pre>0</pre>
<div class="output_text output_subarea ">
<pre>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
</pre>
</div>
</div>
......
......@@ -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 <command> [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> Path to a verbose appending log.\n",
" --proxy <proxy> Specify a proxy in the form\n",
" [user:passwd@]proxy.server:port.\n",
" --retries <retries> Maximum number of retries each connection should\n",
" attempt (default 5 times).\n",
" --timeout <sec> Set the socket timeout (default 15 seconds).\n",
" --exists-action <action> Default action when a path already exists:\n",
" (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.\n",
" --trusted-host <hostname> Mark this host or host:port pair as trusted,\n",
" even though it does not have valid or any HTTPS.\n",
" --cert <path> Path to alternate CA bundle.\n",
" --client-cert <path> Path to SSL client certificate, a single file\n",
" containing the private key and the certificate\n",
" in PEM format.\n",
" --cache-dir <dir> Store the cache data in <dir>.\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": {
......
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