Then you will want to deactivate interactive plots in matplotlib. To
this end, you first need to know where the matplotlib configuration is
located. Open a python console the type the following code:
#+begin_src python :results output :exports both
import matplotlib
matplotlib.matplotlib_fname()
#+end_src
[[file:emacs_orgmode_images/matplotlib.png]]
Open the =matplotlibrc= file and add a =#= at the beginning of the line
starting with =backend=, which amounts to use the default =Agg= value.
* A simple "/reproducible research/" emacs configuration
* A simple "/reproducible research/" emacs configuration
This section is illustrated in a [[https://www.fun-mooc.fr/courses/course-v1:inria+41016+session01bis/jump_to_id/9cfc7500f0ef46d288d2317ec7b037b4][video tutorial]] (/"Mise en place
This section is illustrated in a [[https://www.fun-mooc.fr/courses/course-v1:inria+41016+session01bis/jump_to_id/9cfc7500f0ef46d288d2317ec7b037b4][video tutorial]] (/"Mise en place
Emacs/Orgmode"/ in French). Watching it before following the
Emacs/Orgmode"/ in French). Watching it before following the
...
@@ -139,7 +176,7 @@ configuration with the following command: =emacs -q -l rr_org/init.el=.
...
@@ -139,7 +176,7 @@ configuration with the following command: =emacs -q -l rr_org/init.el=.
Open a new instance of Emacs and open a =foo.org= file. Copy the
Open a new instance of Emacs and open a =foo.org= file. Copy the
following lines in this file:
following lines in this file:
: #+begin_src shell :session foo :results output :exports both
: #+begin_src shell :session foo :results output :exports both
: ls -la
: ls -la # or dir under windows
: #+end_src
: #+end_src
Put your cursor inside this code block and execute it with the
Put your cursor inside this code block and execute it with the
...
@@ -156,9 +193,9 @@ is demonstrated in the [[https://app-learninglab.inria.fr/gitlab/learning-lab/mo
...
@@ -156,9 +193,9 @@ is demonstrated in the [[https://app-learninglab.inria.fr/gitlab/learning-lab/mo
** Step 4: Open and play with your journal:
** Step 4: Open and play with your journal:
In step 1, you were told to create an journal in
In step 1, you were told to create an journal in
=~org/journal.org=. First you probably want to make sure this file is
=~org/journal.org=. First you probably want to make sure this file is
backed up in a revision control system like git. We leave it up to set
backed up in a revision control system like git. We leave it up to you
this up but if you have any trouble, feel free to ask on the FUN
to set this up but if you have any trouble, feel free to ask on the
forums.
FUN forums.
* A stub of replicable article
* A stub of replicable article
This section is illustrated in a [[https://www.fun-mooc.fr/courses/course-v1:inria+41016+session01bis/jump_to_id/9cfc7500f0ef46d288d2317ec7b037b4][video tutorial]] (/"Écrire un article
This section is illustrated in a [[https://www.fun-mooc.fr/courses/course-v1:inria+41016+session01bis/jump_to_id/9cfc7500f0ef46d288d2317ec7b037b4][video tutorial]] (/"Écrire un article
réplicable avec Emacs/Orgmode"/ in French). Watching it before
réplicable avec Emacs/Orgmode"/ in French). Watching it before