From 32c0f278162e62c27e30bb7773bf3f38e540c0f3 Mon Sep 17 00:00:00 2001 From: Arnaud Legrand Date: Thu, 19 Jul 2018 15:45:21 +0200 Subject: [PATCH] Regeneration --- module2/ressources/jupyter.html | 105 ++++++++++++++++---------------- module2/ressources/jupyter.org | 3 +- 2 files changed, 56 insertions(+), 52 deletions(-) diff --git a/module2/ressources/jupyter.html b/module2/ressources/jupyter.html index 71405a3..c2dc51c 100644 --- a/module2/ressources/jupyter.html +++ b/module2/ressources/jupyter.html @@ -3,7 +3,7 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Rstudio @@ -234,31 +234,31 @@ for the JavaScript code in this tag.

Table of Contents

-
-

Interacting with gitlab

-
+
+

Interacting with gitlab

+

This section needs some love. @@ -275,13 +275,13 @@ and to share your notebook with others.

-
-

Additional Jupyter resources or tricks

-
+
+

Additional Jupyter resources or tricks

+
-
-

Tips and tricks

-
+
+

Tips and tricks

+

The following webpage lists several Jupyter tricks (in particular, it illustrates many Ipython magic commands) that should improve your @@ -291,9 +291,9 @@ now).

-
-

Running R and Python in the same notebook

-
+
+

Running R and Python in the same notebook

+

The best solution to this is to install rpy2. On my machine, I have installed the python3-rpy2 debian package with apt-get install. An @@ -335,9 +335,9 @@ plot((df)

-
-

Exporting a notebook

-
+
+

Exporting a notebook

+

Obviously, you can convert to html or pdf using the using the File > Download as > HTML (or PDF) menu option. This can also be done from @@ -364,13 +364,13 @@ taste.

-
-

Installing jupyter or jupyter hub on your own machine

-
+
+

Installing jupyter or jupyter hub on your own machine

+
-
-

Installing jupyter

-
+
+

Installing jupyter

+

Here is what you should install:

@@ -401,16 +401,16 @@ The ipython notebook can then be run with the following command:
-
-

Using R

-
+
+

Using R

+

If you also want to have the R kernel in jupyter, follow these instructions.

-Alternatively, you can install rpy2 (see the Running R and Python in +Alternatively, you can install rpy2 (see the Running R and Python in the same notebook section).

@@ -419,9 +419,9 @@ the same notebook section).
-
-

Exporting your notebooks with latex

-
+
+

Exporting your notebooks with latex

+

Here is what I had to install to make sure the notebook export via latex works: @@ -433,9 +433,9 @@ sudo apt-get install texlive-xetex

-
-

Interacting with gitlab

-
+
+

Interacting with gitlab

+

Here is our jupyter extension that allows to git push/pull from the notebooks: @@ -447,9 +447,12 @@ jupyter nbextension enable nb-git

-
-

Interesting extensions

-
+
+

Interesting extensions to improve notebook readability

+
+

+Here are two interesting extensions that can improve readability: +

  • Code folding @@ -472,9 +475,9 @@ jupyter-serverextension enable --py hide_code

-
-

Installing jupyterhub

-
+
+

Installing jupyterhub

+

Benoit may give a few hints on this. @@ -487,7 +490,7 @@ Benoit may give a few hints on this.

Date: June, 2018

Author: Arnaud Legrand

-

Created: 2018-07-19 jeu. 14:26

+

Created: 2018-07-19 jeu. 15:45

Validate

diff --git a/module2/ressources/jupyter.org b/module2/ressources/jupyter.org index 8c333e9..c6e3834 100644 --- a/module2/ressources/jupyter.org +++ b/module2/ressources/jupyter.org @@ -106,7 +106,8 @@ notebooks]]: jupyter nbextension install https://raw.githubusercontent.com/brospars/nb-git/master/nb-git.js jupyter nbextension enable nb-git #+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]] #+begin_src shell :results output :exports both pip3 install jupyter_contrib_nbextensions -- 2.18.1