diff --git a/module2/exo2/exercice_R_en.org b/module2/exo2/exercice_R_en.org index 2b73d64e82dad485ab562f8bda6434ffa7b68d27..c3368b5f1704e9f8387c0ded9c0395ad4d125bd9 100644 --- a/module2/exo2/exercice_R_en.org +++ b/module2/exo2/exercice_R_en.org @@ -1,5 +1,5 @@ #+TITLE: Your title -#+AUTHOR: Your name +#+AUTHOR: Thomas Rushton #+DATE: Today's date #+LANGUAGE: en # #+PROPERTY: header-args :eval never-export @@ -54,12 +54,12 @@ summary(cars) : Max. :25.0 Max. :120.00 Finally, an example for graphical output: -#+begin_src R :results output graphics :file "./cars.png" :exports results :width 600 :height 400 :session *R* +#+begin_src R :file cars.png :results output graphics file :exports results :width 600 :height 400 :session *R* plot(cars) #+end_src #+RESULTS: -[[file:./cars.png]] +[[file:cars.png]] Note the parameter ~:exports results~, which indicates that the code will not appear in the exported document. We recommend that in the diff --git a/module2/exo2/exercice_python_en.org b/module2/exo2/exercice_python_en.org index 5782f493934678ba782fb65634a4d86e5f3adefc..3fa3ccf29336c58bd51199063b7e9ded6861388e 100644 --- a/module2/exo2/exercice_python_en.org +++ b/module2/exo2/exercice_python_en.org @@ -1,5 +1,5 @@ #+TITLE: Your title -#+AUTHOR: Your name +#+AUTHOR: Thomas Rushton #+DATE: Today's date #+LANGUAGE: en # #+PROPERTY: header-args :eval never-export @@ -60,7 +60,7 @@ print(x) #+end_example Finally, an example for graphical output: -#+begin_src python :results output file :session :var matplot_lib_filename="./cosxsx.png" :exports results +#+begin_src python :session :results output file :var matplot_lib_filename="./cosxsx.png" :exports results import matplotlib.pyplot as plt plt.figure(figsize=(10,5))