@@ -91,7 +91,7 @@ Note that this =%%R= notation indicates that R should be used for the whole cell
...
@@ -91,7 +91,7 @@ Note that this =%%R= notation indicates that R should be used for the whole cell
an other possibility is to use =%R= to have a single line of R within a
an other possibility is to use =%R= to have a single line of R within a
python cell.
python cell.
[[https://gitlab.inria.fr/learninglab/mooc-rr/mooc-rr-ressources/blob/master/documents/notebooks/notebook_Jupyter_Python_R.ipynb][Here]] is an notebook example using both R et Python
[[file:../../documents/notebooks/notebook_Jupyter_Python_R.ipynb][Here]] is an notebook example using both R et Python
** Other languages
** Other languages
Jupyter is not limited to Python and R. Many other languages are available:
Jupyter is not limited to Python and R. Many other languages are available:
...
@@ -241,8 +241,9 @@ You will then be able to create native R notebooks:
...
@@ -241,8 +241,9 @@ You will then be able to create native R notebooks:
[[file:jupyter_images/notebook_R.png]]
[[file:jupyter_images/notebook_R.png]]
Note the R icon in the top right corner. [[https://gitlab.inria.fr/learninglab/mooc-rr/mooc-rr-ressources/blob/master/documents/notebooks/notebook_Jupyter_R.ipynb][Here is an example of R
@@ -94,7 +94,7 @@ et récupère le résultat. Jupyter fait alors le nécessaire pour
...
@@ -94,7 +94,7 @@ et récupère le résultat. Jupyter fait alors le nécessaire pour
l'afficher correctement. Il est également possible d'utiliser =%R= pour
l'afficher correctement. Il est également possible d'utiliser =%R= pour
avoir une seule ligne de R au sein d'une cellule python.
avoir une seule ligne de R au sein d'une cellule python.
Un exemple de notebook utilisant R et Python est donné [[https://gitlab.inria.fr/learninglab/mooc-rr/mooc-rr-ressources/blob/master/documents/notebooks/notebook_Jupyter_Python_R.ipynb][ici]].
Un exemple de notebook utilisant R et Python est donné [[file:../../documents/notebooks/notebook_Jupyter_Python_R.ipynb][ici]].
** Autres langages que Python et R
** Autres langages que Python et R
Jupyter tire son nom des langages Julia, Python, et R. Il ne se limite
Jupyter tire son nom des langages Julia, Python, et R. Il ne se limite
...
@@ -269,7 +269,7 @@ Vous pourrez alors créer des notebooks utilisant directement R:
...
@@ -269,7 +269,7 @@ Vous pourrez alors créer des notebooks utilisant directement R:
[[file:jupyter_images/notebook_R.png]]
[[file:jupyter_images/notebook_R.png]]
On remarque l'icône du logiciel R en haut à droite. Vous trouverez ici
On remarque l'icône du logiciel R en haut à droite. Vous trouverez ici
[[https://gitlab.inria.fr/learninglab/mooc-rr/mooc-rr-ressources/blob/master/documents/notebooks/notebook_Jupyter_R.ipynb][un exemple de notebook R]].
[[file:../../documents/notebooks/notebook_Jupyter_R.ipynb][un exemple de notebook R]].
*** • Installation de rpy2 (Python package)
*** • Installation de rpy2 (Python package)
La bibliothèque =rpy2= permet à Python d'appeler R et donc de mélanger
La bibliothèque =rpy2= permet à Python d'appeler R et donc de mélanger