From 388ab7148ce2bf712a279fdc30036f5b44095f01 Mon Sep 17 00:00:00 2001 From: Arnaud Legrand Date: Thu, 19 Jul 2018 16:26:55 +0200 Subject: [PATCH] Benoit will take care of this (or not) --- module2/ressources/jupyter.html | 112 +++++++++++++------------------- module2/ressources/jupyter.org | 16 +---- 2 files changed, 49 insertions(+), 79 deletions(-) diff --git a/module2/ressources/jupyter.html b/module2/ressources/jupyter.html index 72e1c29..252e1db 100644 --- a/module2/ressources/jupyter.html +++ b/module2/ressources/jupyter.html @@ -4,54 +4,34 @@

Table of Contents

-
-

Interacting with gitlab

-
-
-

-This section needs some love. -

-
- -

-As you may have seen from the videos, we provide two buttons to sync -with gitlab. Indeed, even if you recover your files when you log back -into fun, the jupyter runs on a different machine than the gitlab -server and you need to commit your notebook every time you have made a -significant step. This is also the only way to really make it public -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 @@ -61,9 +41,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 @@ -105,9 +85,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 @@ -134,13 +114,13 @@ taste.

-
-

Installing jupyter or jupyter hub on your own machine

-
+
+

Installing Jupyter on your own machine

+
-
-

Installing jupyter

-
+
+

Installing jupyter

+

Here is what you should install:

@@ -171,16 +151,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).

@@ -189,9 +169,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: @@ -203,9 +183,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: @@ -217,9 +197,9 @@ jupyter nbextension enable nb-git

-
-

Interesting extensions to improve notebook readability

-
+
+

Interesting extensions to improve notebook readability

+

Here are two interesting extensions that can improve readability:

@@ -245,9 +225,10 @@ jupyter-serverextension enable --py hide_code
-
-

Installing jupyterhub

-
+
+
+

Installing JupyterHub   Benoit

+

Benoit may give a few hints on this. @@ -256,4 +237,3 @@ Benoit may give a few hints on this.

-
diff --git a/module2/ressources/jupyter.org b/module2/ressources/jupyter.org index 60233b6..c4b807b 100644 --- a/module2/ressources/jupyter.org +++ b/module2/ressources/jupyter.org @@ -4,18 +4,8 @@ #+DATE: June, 2018 #+STARTUP: overview indent #+OPTIONS: num:nil toc:t +#+PROPERTY: header-args :eval never-export -* Interacting with gitlab -#+BEGIN_QUOTE -This section needs some love. -#+END_QUOTE - -As you may have seen from the videos, we provide two buttons to sync -with gitlab. Indeed, even if you recover your files when you log back -into fun, the jupyter runs on a different machine than the gitlab -server and you need to commit your notebook every time you have made a -significant step. This is also the only way to really make it public -and to share your notebook with others. * Additional Jupyter resources or tricks ** Tips and tricks The following [[https://www.dataquest.io/blog/jupyter-notebook-tips-tricks-shortcuts/][webpage]] lists several Jupyter tricks (in particular, it @@ -64,7 +54,7 @@ Instead of going directly through LaTeX and playing too much with the nbconvert exporter, an other option consists in exporting to Markdown and playing with [[https://pandoc.org/][pandoc]]. Both approaches work, it's rather a matter of taste. -* Installing jupyter or jupyter hub on your own machine +* Installing Jupyter on your own machine ** Installing jupyter Here is what you should install: #+begin_src shell :results output :exports both @@ -120,7 +110,7 @@ Here are two interesting extensions that can improve readability: jupyter-nbextension enable --py hide_code jupyter-serverextension enable --py hide_code #+end_src -** Installing jupyterhub +* Installing JupyterHub :Benoit: #+BEGIN_QUOTE Benoit may give a few hints on this. #+END_QUOTE -- 2.18.1