Commit 3f98f47d authored by Laurence Farhi's avatar Laurence Farhi

Interaction gitlab/git dans la Toc + lien vers les tutos

parent a90379c7
...@@ -23,6 +23,7 @@ jupyter notebook ...@@ -23,6 +23,7 @@ jupyter notebook
- [[#making-sure-jupyter-allows-you-to-use-r][Making sure Jupyter allows you to use R]] - [[#making-sure-jupyter-allows-you-to-use-r][Making sure Jupyter allows you to use R]]
- [[#latex-for-pdf-export][LaTeX for PDF export]] - [[#latex-for-pdf-export][LaTeX for PDF export]]
- [[#additional-tips][Additional tips]] - [[#additional-tips][Additional tips]]
- [[#interacting-with-gitlab-and-github][Interacting with GitLab and GitHub]]
* Jupyter tips and tricks * Jupyter tips and tricks
The following [[https://www.dataquest.io/blog/jupyter-notebook-tips-tricks-shortcuts/][webpage]] lists several Jupyter tricks (in particular, it The following [[https://www.dataquest.io/blog/jupyter-notebook-tips-tricks-shortcuts/][webpage]] lists several Jupyter tricks (in particular, it
...@@ -344,14 +345,17 @@ Here are a few extensions that can ease your life: ...@@ -344,14 +345,17 @@ Here are a few extensions that can ease your life:
#+END_CENTER #+END_CENTER
NB: In the first edition of the MOOC some people had issues making NB: In the first edition of the MOOC some people had issues making
it work under Windows. it work under Windows.
*** • Interacting with GitLab and GitHub ** • Interacting with GitLab and GitHub
To ease your experience, we added pull/push buttons that allow To ease your experience, we added pull/push buttons that allow
you to commit and sync with GitLab. This development was specific to you to commit and sync with GitLab. This development was specific to
the MOOC but inspired from a previous [[https://github.com/Lab41/sunny-side-up][proof of concept]]. We have the MOOC but inspired from a previous [[https://github.com/Lab41/sunny-side-up][proof of concept]]. We have
recently discovered that someone else developed about at the same time recently discovered that someone else developed about at the same time
a [[https://github.com/sat28/githubcommit][rather generic version of this Jupyter plugin]]. Otherwise, remember a [[https://github.com/sat28/githubcommit][rather generic version of this Jupyter plugin]]. Otherwise, remember
that it is very easy to insert a shell cell in Jupyter in which you that it is very easy to insert a shell cell in Jupyter in which you
can easily issue git commands. This is how we work most of the time. can easily issue git commands. This is how we work most of the time. If you choose this solution, *we strongly advise that you
follow [[https://www.fun-mooc.fr/courses/course-v1:inria+41016+session02/jump_to_id/d132a854b0464ad29085cedaded23136][our tutorial on using git from RStudio]]* (/"RStudio et Gitlab"/
). Before proceeding, make sure you also have followed the
*[[https://www.fun-mooc.fr/courses/course-v1:inria+41016+session02/jump_to_id/7508aece244548349424dfd61ee3ba85]["git/GitLab configuration" tutorial]]*.
This being said, you may have noticed that Jupyter keeps a perfect This being said, you may have noticed that Jupyter keeps a perfect
track of the sequence in which cells have been run by updating the track of the sequence in which cells have been run by updating the
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
- [[#sassurer-que-jupyter-vous-permet-dutiliser-r][S'assurer que Jupyter vous permet d'utiliser R]] - [[#sassurer-que-jupyter-vous-permet-dutiliser-r][S'assurer que Jupyter vous permet d'utiliser R]]
- [[#latex-pour-la-génération-de-pdf][LaTeX pour la génération de PDF]] - [[#latex-pour-la-génération-de-pdf][LaTeX pour la génération de PDF]]
- [[#conseils-additionnels][Conseils additionnels]] - [[#conseils-additionnels][Conseils additionnels]]
[[interaction-avec-gitlab-et-github][Interaction avec GitLab et GitHub]]
* Jupyter : Trucs et astuces * Jupyter : Trucs et astuces
Cette [[https://www.dataquest.io/blog/jupyter-notebook-tips-tricks-shortcuts/][page web]] (en anglais) recense un certain nombre d'astuces Cette [[https://www.dataquest.io/blog/jupyter-notebook-tips-tricks-shortcuts/][page web]] (en anglais) recense un certain nombre d'astuces
...@@ -381,7 +382,7 @@ vie : ...@@ -381,7 +382,7 @@ vie :
N.B. : Dans la première édition de ce MOOC, certains participants nous N.B. : Dans la première édition de ce MOOC, certains participants nous
ont rapporté avoir eu des difficultés à faire fonctionner cette ont rapporté avoir eu des difficultés à faire fonctionner cette
extension sous Windows. extension sous Windows.
*** • Interaction avec GitLab et GitHub ** • Interaction avec GitLab et GitHub
Pour rendre vous simplifier la vie, nous avons rajouté des boutons Pour rendre vous simplifier la vie, nous avons rajouté des boutons
=pull/push= dans Jupyter qui vous permettent de synchroniser vos =pull/push= dans Jupyter qui vous permettent de synchroniser vos
modifications avec GitLab. Ce développement spécifique pour ce MOOC modifications avec GitLab. Ce développement spécifique pour ce MOOC
...@@ -393,7 +394,10 @@ intéresse, c'est donc une piste intéressante à explorer. Sinon, ...@@ -393,7 +394,10 @@ intéresse, c'est donc une piste intéressante à explorer. Sinon,
souvenez-vous qu'il est très simple d'insérer une cellule shell dans souvenez-vous qu'il est très simple d'insérer une cellule shell dans
Jupyter et vous pouvez facilement y insérer des commandes Jupyter et vous pouvez facilement y insérer des commandes
Git. C'est la façon dont nous travaillons en pratique la majorité du Git. C'est la façon dont nous travaillons en pratique la majorité du
temps. temps. Si vous optez pour cette solution, il vous faudra configurer Git sur votre
ordinateur. Pour ce faire, vous pouvez suivre la vidéo
[[https://www.fun-mooc.fr/courses/course-v1:inria+41016+session02/jump_to_id/7508aece244548349424dfd61ee3ba85][configurer Git pour Gitlab]] et le document
[[https://gitlab.inria.fr/learninglab/mooc-rr/mooc-rr-ressources/blob/master/module2/ressources/gitlab_fr.org][Git et Gitlab]] correspondant.
Ceci étant dit, vous avez certainement remarqué que Jupyter conserve Ceci étant dit, vous avez certainement remarqué que Jupyter conserve
une trace parfaite de l'ordre dans lequel les cellules ont été une trace parfaite de l'ordre dans lequel les cellules ont été
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment