diff --git a/module2/exo1/toy_document_orgmode_python_fr.org b/module2/exo1/toy_document_orgmode_python_fr.org index e9abc2dd22bfc1daab15855e36a9a4f41ed5a814..3a772660c6dee55e9484b8560ab15aa69d4d729a 100644 --- a/module2/exo1/toy_document_orgmode_python_fr.org +++ b/module2/exo1/toy_document_orgmode_python_fr.org @@ -11,8 +11,14 @@ Mon ordinateur m'indique que \pi vaut approximativement : (org-babel-do-load-languages 'org-babel-load-languages '((python . t))) +(setq org-babel-python-command "python3.8") #+end_src +# La config ne fonctionneme pas dans le fichier de configuration. J'ai decidé de l'importer dans le code + +#+RESULTS: +: python3.8 + #+begin_src python :results output :session :exports both from math import * pi @@ -38,7 +44,7 @@ theta = np.random.uniform(size=N, low=0, high=pi/2) #+RESULTS: : -: >>> >>> >>> >>> 0 +: >>> >>> >>> >>> 3.128911138923655