diff --git a/module2/ressources/jupyter.html b/module2/ressources/jupyter.html index 71405a33ee8022c41efdbf9a41577563dbe9dd70..c2dc51c85db8f134e4adda8d8f6c87b282432319 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">
- +This section needs some love. @@ -275,13 +275,13 @@ and to share your notebook with others.
The following webpage lists several Jupyter tricks (in particular, it
illustrates many Ipython magic
commands) that should improve your
@@ -291,9 +291,9 @@ now).
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)
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.
Here is what you should install:
@@ -401,16 +401,16 @@ The ipython notebook can then be run with the following command: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).
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
Here is our jupyter extension that allows to git push/pull from the notebooks: @@ -447,9 +447,12 @@ jupyter nbextension enable nb-git
+Here are two interesting extensions that can improve readability: +
Code folding @@ -472,9 +475,9 @@ jupyter-serverextension enable --py hide_code
Benoit may give a few hints on this. @@ -487,7 +490,7 @@ Benoit may give a few hints on this.
diff --git a/module2/ressources/jupyter.org b/module2/ressources/jupyter.org index 8c333e9e09cb661f21a9683d1725fb65baa338b8..c6e38343d6a335afc37eecf03bfdd08b42b36b0d 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