@@ -140,7 +140,7 @@ Open the =matplotlibrc= file and modify the line starting with =backend=
...
@@ -140,7 +140,7 @@ Open the =matplotlibrc= file and modify the line starting with =backend=
to make it =backend : Agg=.
to make it =backend : Agg=.
* Python, R, and LaTeX
* Python, R, and LaTeX
Computational documents contain code, which in the case of our MOOC use the languages Python and R. So you must install Python and R in addition to Emacs, unless of course they are already installed on your computer. Since Python and R are also used in the other paths of our MOOC, we explain their installation in a separate resource.
Computational documents contain code, which in the case of our MOOC use the languages Python and R. So you must install Python and R in addition to Emacs, unless of course they are already installed on your computer. Since Python and R are also used in the other paths of our MOOC, we explain their installation in a [[https://www.fun-mooc.fr/courses/course-v1:inria+41016+session02/jump_to_id/19c2b1de7766484bae73f3ab133463c6][separate resource]].
That same resource also explains how to install LaTeX, which you must have if you want to produce PDF versions of org-mode documents. For example, if you want to work with the replicable article stub (shown in [[https://www.fun-mooc.fr/courses/course-v1:inria+41016+session02/jump_to_id/9cfc7500f0ef46d288d2317ec7b037b4][this video]]), you must install LaTeX. However, it is a rather big piece of software (several GB), so you may prefer to skip its installation. It is not required to follow the MOOC.
That same resource also explains how to install LaTeX, which you must have if you want to produce PDF versions of org-mode documents. For example, if you want to work with the replicable article stub (shown in [[https://www.fun-mooc.fr/courses/course-v1:inria+41016+session02/jump_to_id/9cfc7500f0ef46d288d2317ec7b037b4][this video]]), you must install LaTeX. However, it is a rather big piece of software (several GB), so you may prefer to skip its installation. It is not required to follow the MOOC.
#+TITLE: Jupyter : tips and tricks, Installing and configuring
#+TITLE: Jupyter : tips and tricks, installing and configuring
#+AUTHOR: Arnaud Legrand, Benoit Rospars, Konrad Hinsen
#+AUTHOR: Arnaud Legrand, Benoit Rospars, Konrad Hinsen
#+DATE: June, 2018
#+DATE: June, 2018
#+STARTUP: overview indent
#+STARTUP: overview indent
...
@@ -221,6 +221,8 @@ the =R_HOME= and =R_USER= environnement variables).
...
@@ -221,6 +221,8 @@ the =R_HOME= and =R_USER= environnement variables).
You should be able to run Jupyter and to create a python notebook that runs
You should be able to run Jupyter and to create a python notebook that runs
R commands by following the instructions given in the beginning of
R commands by following the instructions given in the beginning of
this document (look for =rpy2=).
this document (look for =rpy2=).
** LaTeX for PDF export
For exporting your notebooks as PDF files, you must also install LaTeX on your system. We describe this process in a [[https://www.fun-mooc.fr/courses/course-v1:inria+41016+session02/jump_to_id/19c2b1de7766484bae73f3ab133463c6][separate resource]].
** Additional tips
** Additional tips
*** • Exporting a notebook
*** • Exporting a notebook
Here is what we had to install on a recent Debian computer to make sure
Here is what we had to install on a recent Debian computer to make sure
@@ -255,6 +255,8 @@ besoin de définir les variables d'environnement =R_HOME= et =R_USER=).
...
@@ -255,6 +255,8 @@ besoin de définir les variables d'environnement =R_HOME= et =R_USER=).
Vous pouvez alors lancer Jupyter et créer un notebook python utilisant
Vous pouvez alors lancer Jupyter et créer un notebook python utilisant
R en suivant les instructions données au début de ce document
R en suivant les instructions données au début de ce document
(cherchez =rpy2=).
(cherchez =rpy2=).
** LaTeX pour la génération de PDF
Si vous voulez convertir vos notebooks en PDF, vous devez aussi installer LaTeX sur votre ordinateur. Nous expliquons cette procédure dans une [[https://www.fun-mooc.fr/courses/course-v1:inria+41016+session02/jump_to_id/19c2b1de7766484bae73f3ab133463c6][ressource spécifique]].
** Conseils additionnels
** Conseils additionnels
*** • Exporter un notebook
*** • Exporter un notebook
Jupyter évolue rapidement et ces informations peuvent vite devenir
Jupyter évolue rapidement et ces informations peuvent vite devenir
- Install R and Python following the instructions given in a [[https://www.fun-mooc.fr/courses/course-v1:inria+41016+session02/jump_to_id/19c2b1de7766484bae73f3ab133463c6][separate resource]].
Some instructions on installing R and knitr must be missing. This
should be tested and improved.
#+END_QUOTE
- Download and install R from the [[https://cran.r-project.org/][CRAN webpage]] by choosing the right operating system.
- Download and install RStudio from the [[https://www.rstudio.com/products/rstudio/download/#download][RStudio webpage]] by choosing the right operating system.
- Download and install RStudio from the [[https://www.rstudio.com/products/rstudio/download/#download][RStudio webpage]] by choosing the right operating system.
- Download and install MiKTeX from the [[https://miktex.org/download][MiKTeX webpage]] by choosing the right operating system. You will be prompted to install some specific packages when exporting to pdf.
- Download and install MiKTeX from the [[https://miktex.org/download][MiKTeX webpage]] by choosing the right operating system. You will be prompted to install some specific packages when exporting to pdf.
- Open RStudio and type the following commands in the console to install =knitr= and =ggplot2=:
- Open RStudio and type the following commands in the console to install =knitr= and =ggplot2=:
- Télécharger et installer R depuis le [[https://cran.r-project.org/][site CRAN]] en choisissant le bon
- Installer R et Python en suivant les instruction dans une [[https://www.fun-mooc.fr/courses/course-v1:inria+41016+session02/jump_to_id/19c2b1de7766484bae73f3ab133463c6][ressource spécifique]].
système d'exploitation.
- Télécharger et installer RStudio depuis le [[https://www.rstudio.com/products/rstudio/download/#download][site RStudio]] en
- Télécharger et installer RStudio depuis le [[https://www.rstudio.com/products/rstudio/download/#download][site RStudio]] en
choisissant le bon système d'exploitation.
choisissant le bon système d'exploitation.
- Télécharger et installer MiKTeX depuis le [[https://miktex.org/download][site MiKTeX]] en choisissant le bon
- Télécharger et installer MiKTeX depuis le [[https://miktex.org/download][site MiKTeX]] en choisissant le bon