Commit 32c0f278 authored by Arnaud Legrand's avatar Arnaud Legrand

Regeneration

parent 31fe13dc
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head> <head>
<!-- 2018-07-19 jeu. 14:26 --> <!-- 2018-07-19 jeu. 15:45 -->
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Rstudio</title> <title>Rstudio</title>
...@@ -234,31 +234,31 @@ for the JavaScript code in this tag. ...@@ -234,31 +234,31 @@ for the JavaScript code in this tag.
<h2>Table of Contents</h2> <h2>Table of Contents</h2>
<div id="text-table-of-contents"> <div id="text-table-of-contents">
<ul> <ul>
<li><a href="#org320e086">Interacting with gitlab</a></li> <li><a href="#org97858c5">Interacting with gitlab</a></li>
<li><a href="#org5fa8060">Additional Jupyter resources or tricks</a> <li><a href="#orgb41aa11">Additional Jupyter resources or tricks</a>
<ul> <ul>
<li><a href="#org602d8a4">Tips and tricks</a></li> <li><a href="#org2ca79c6">Tips and tricks</a></li>
<li><a href="#orgf07bc97">Running R and Python in the same notebook</a></li> <li><a href="#orgf423e42">Running R and Python in the same notebook</a></li>
<li><a href="#org6fe9a0a">Exporting a notebook</a></li> <li><a href="#org7654980">Exporting a notebook</a></li>
</ul> </ul>
</li> </li>
<li><a href="#org27a7607">Installing jupyter or jupyter hub on your own machine</a> <li><a href="#org777e50c">Installing jupyter or jupyter hub on your own machine</a>
<ul> <ul>
<li><a href="#org3da1dd0">Installing jupyter</a></li> <li><a href="#org3a2fabc">Installing jupyter</a></li>
<li><a href="#orge6d06de">Using R</a></li> <li><a href="#orgcae22b4">Using R</a></li>
<li><a href="#org5d221f3">Exporting your notebooks with latex</a></li> <li><a href="#orgcd4e4e0">Exporting your notebooks with latex</a></li>
<li><a href="#orgcd67c04">Interacting with gitlab</a></li> <li><a href="#org9e7be3a">Interacting with gitlab</a></li>
<li><a href="#orgd5ecec1">Interesting extensions</a></li> <li><a href="#org932058f">Interesting extensions to improve notebook readability</a></li>
<li><a href="#org44b207c">Installing jupyterhub</a></li> <li><a href="#orgcdd7391">Installing jupyterhub</a></li>
</ul> </ul>
</li> </li>
</ul> </ul>
</div> </div>
</div> </div>
<div id="outline-container-org320e086" class="outline-2"> <div id="outline-container-org97858c5" class="outline-2">
<h2 id="org320e086">Interacting with gitlab</h2> <h2 id="org97858c5">Interacting with gitlab</h2>
<div class="outline-text-2" id="text-org320e086"> <div class="outline-text-2" id="text-org97858c5">
<blockquote> <blockquote>
<p> <p>
This section needs some love. This section needs some love.
...@@ -275,13 +275,13 @@ and to share your notebook with others. ...@@ -275,13 +275,13 @@ and to share your notebook with others.
</p> </p>
</div> </div>
</div> </div>
<div id="outline-container-org5fa8060" class="outline-2"> <div id="outline-container-orgb41aa11" class="outline-2">
<h2 id="org5fa8060">Additional Jupyter resources or tricks</h2> <h2 id="orgb41aa11">Additional Jupyter resources or tricks</h2>
<div class="outline-text-2" id="text-org5fa8060"> <div class="outline-text-2" id="text-orgb41aa11">
</div> </div>
<div id="outline-container-org602d8a4" class="outline-3"> <div id="outline-container-org2ca79c6" class="outline-3">
<h3 id="org602d8a4">Tips and tricks</h3> <h3 id="org2ca79c6">Tips and tricks</h3>
<div class="outline-text-3" id="text-org602d8a4"> <div class="outline-text-3" id="text-org2ca79c6">
<p> <p>
The following <a href="https://www.dataquest.io/blog/jupyter-notebook-tips-tricks-shortcuts/">webpage</a> lists several Jupyter tricks (in particular, it The following <a href="https://www.dataquest.io/blog/jupyter-notebook-tips-tricks-shortcuts/">webpage</a> lists several Jupyter tricks (in particular, it
illustrates many <code>Ipython magic</code> commands) that should improve your illustrates many <code>Ipython magic</code> commands) that should improve your
...@@ -291,9 +291,9 @@ now). ...@@ -291,9 +291,9 @@ now).
</p> </p>
</div> </div>
</div> </div>
<div id="outline-container-orgf07bc97" class="outline-3"> <div id="outline-container-orgf423e42" class="outline-3">
<h3 id="orgf07bc97">Running R and Python in the same notebook</h3> <h3 id="orgf423e42">Running R and Python in the same notebook</h3>
<div class="outline-text-3" id="text-orgf07bc97"> <div class="outline-text-3" id="text-orgf423e42">
<p> <p>
The best solution to this is to install rpy2. On my machine, I have The best solution to this is to install rpy2. On my machine, I have
installed the <code>python3-rpy2</code> debian package with <code>apt-get install</code>. An installed the <code>python3-rpy2</code> debian package with <code>apt-get install</code>. An
...@@ -335,9 +335,9 @@ plot((df) ...@@ -335,9 +335,9 @@ plot((df)
</ol> </ol>
</div> </div>
</div> </div>
<div id="outline-container-org6fe9a0a" class="outline-3"> <div id="outline-container-org7654980" class="outline-3">
<h3 id="org6fe9a0a">Exporting a notebook</h3> <h3 id="org7654980">Exporting a notebook</h3>
<div class="outline-text-3" id="text-org6fe9a0a"> <div class="outline-text-3" id="text-org7654980">
<p> <p>
Obviously, you can convert to html or pdf using the using the <code>File &gt; Obviously, you can convert to html or pdf using the using the <code>File &gt;
Download as &gt; HTML</code> (or <code>PDF</code>) menu option. This can also be done from Download as &gt; HTML</code> (or <code>PDF</code>) menu option. This can also be done from
...@@ -364,13 +364,13 @@ taste. ...@@ -364,13 +364,13 @@ taste.
</div> </div>
</div> </div>
</div> </div>
<div id="outline-container-org27a7607" class="outline-2"> <div id="outline-container-org777e50c" class="outline-2">
<h2 id="org27a7607">Installing jupyter or jupyter hub on your own machine</h2> <h2 id="org777e50c">Installing jupyter or jupyter hub on your own machine</h2>
<div class="outline-text-2" id="text-org27a7607"> <div class="outline-text-2" id="text-org777e50c">
</div> </div>
<div id="outline-container-org3da1dd0" class="outline-3"> <div id="outline-container-org3a2fabc" class="outline-3">
<h3 id="org3da1dd0">Installing jupyter</h3> <h3 id="org3a2fabc">Installing jupyter</h3>
<div class="outline-text-3" id="text-org3da1dd0"> <div class="outline-text-3" id="text-org3a2fabc">
<p> <p>
Here is what you should install: Here is what you should install:
</p> </p>
...@@ -401,16 +401,16 @@ The ipython notebook can then be run with the following command: ...@@ -401,16 +401,16 @@ The ipython notebook can then be run with the following command:
</div> </div>
</div> </div>
</div> </div>
<div id="outline-container-orge6d06de" class="outline-3"> <div id="outline-container-orgcae22b4" class="outline-3">
<h3 id="orge6d06de">Using R</h3> <h3 id="orgcae22b4">Using R</h3>
<div class="outline-text-3" id="text-orge6d06de"> <div class="outline-text-3" id="text-orgcae22b4">
<p> <p>
If you also want to have the R kernel in jupyter, follow <a href="https://github.com/IRkernel/IRkernel#installation">these If you also want to have the R kernel in jupyter, follow <a href="https://github.com/IRkernel/IRkernel#installation">these
instructions</a>. instructions</a>.
</p> </p>
<p> <p>
Alternatively, you can install <code>rpy2</code> (see the <a href="#orgf07bc97">Running R and Python in Alternatively, you can install <code>rpy2</code> (see the <a href="#orgf423e42">Running R and Python in
the same notebook</a> section). the same notebook</a> section).
</p> </p>
<div class="org-src-container"> <div class="org-src-container">
...@@ -419,9 +419,9 @@ the same notebook</a> section). ...@@ -419,9 +419,9 @@ the same notebook</a> section).
</div> </div>
</div> </div>
</div> </div>
<div id="outline-container-org5d221f3" class="outline-3"> <div id="outline-container-orgcd4e4e0" class="outline-3">
<h3 id="org5d221f3">Exporting your notebooks with latex</h3> <h3 id="orgcd4e4e0">Exporting your notebooks with latex</h3>
<div class="outline-text-3" id="text-org5d221f3"> <div class="outline-text-3" id="text-orgcd4e4e0">
<p> <p>
Here is what I had to install to make sure the notebook export via Here is what I had to install to make sure the notebook export via
latex works: latex works:
...@@ -433,9 +433,9 @@ sudo apt-get install texlive-xetex ...@@ -433,9 +433,9 @@ sudo apt-get install texlive-xetex
</div> </div>
</div> </div>
</div> </div>
<div id="outline-container-orgcd67c04" class="outline-3"> <div id="outline-container-org9e7be3a" class="outline-3">
<h3 id="orgcd67c04">Interacting with gitlab</h3> <h3 id="org9e7be3a">Interacting with gitlab</h3>
<div class="outline-text-3" id="text-orgcd67c04"> <div class="outline-text-3" id="text-org9e7be3a">
<p> <p>
Here is our <a href="https://github.com/brospars/nb-git">jupyter extension that allows to git push/pull from the Here is our <a href="https://github.com/brospars/nb-git">jupyter extension that allows to git push/pull from the
notebooks</a>: notebooks</a>:
...@@ -447,9 +447,12 @@ jupyter nbextension enable nb-git ...@@ -447,9 +447,12 @@ jupyter nbextension enable nb-git
</div> </div>
</div> </div>
</div> </div>
<div id="outline-container-orgd5ecec1" class="outline-3"> <div id="outline-container-org932058f" class="outline-3">
<h3 id="orgd5ecec1">Interesting extensions</h3> <h3 id="org932058f">Interesting extensions to improve notebook readability</h3>
<div class="outline-text-3" id="text-orgd5ecec1"> <div class="outline-text-3" id="text-org932058f">
<p>
Here are two interesting extensions that can improve readability:
</p>
<ul class="org-ul"> <ul class="org-ul">
<li><p> <li><p>
<a href="https://stackoverflow.com/questions/33159518/collapse-cell-in-jupyter-notebook">Code folding</a> <a href="https://stackoverflow.com/questions/33159518/collapse-cell-in-jupyter-notebook">Code folding</a>
...@@ -472,9 +475,9 @@ jupyter-serverextension enable --py hide_code ...@@ -472,9 +475,9 @@ jupyter-serverextension enable --py hide_code
</ul> </ul>
</div> </div>
</div> </div>
<div id="outline-container-org44b207c" class="outline-3"> <div id="outline-container-orgcdd7391" class="outline-3">
<h3 id="org44b207c">Installing jupyterhub</h3> <h3 id="orgcdd7391">Installing jupyterhub</h3>
<div class="outline-text-3" id="text-org44b207c"> <div class="outline-text-3" id="text-orgcdd7391">
<blockquote> <blockquote>
<p> <p>
Benoit may give a few hints on this. Benoit may give a few hints on this.
...@@ -487,7 +490,7 @@ Benoit may give a few hints on this. ...@@ -487,7 +490,7 @@ Benoit may give a few hints on this.
<div id="postamble" class="status"> <div id="postamble" class="status">
<p class="date">Date: June, 2018</p> <p class="date">Date: June, 2018</p>
<p class="author">Author: Arnaud Legrand</p> <p class="author">Author: Arnaud Legrand</p>
<p class="date">Created: 2018-07-19 jeu. 14:26</p> <p class="date">Created: 2018-07-19 jeu. 15:45</p>
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p> <p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div> </div>
</body> </body>
......
...@@ -106,7 +106,8 @@ notebooks]]: ...@@ -106,7 +106,8 @@ notebooks]]:
jupyter nbextension install https://raw.githubusercontent.com/brospars/nb-git/master/nb-git.js jupyter nbextension install https://raw.githubusercontent.com/brospars/nb-git/master/nb-git.js
jupyter nbextension enable nb-git jupyter nbextension enable nb-git
#+end_src #+end_src
** Interesting extensions ** Interesting extensions to improve notebook readability
Here are two interesting extensions that can improve readability:
- [[https://stackoverflow.com/questions/33159518/collapse-cell-in-jupyter-notebook][Code folding]] - [[https://stackoverflow.com/questions/33159518/collapse-cell-in-jupyter-notebook][Code folding]]
#+begin_src shell :results output :exports both #+begin_src shell :results output :exports both
pip3 install jupyter_contrib_nbextensions pip3 install jupyter_contrib_nbextensions
......
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