diff --git a/module2/ressources/emacs_orgmode.org b/module2/ressources/emacs_orgmode.org index 21b3e153ed839902ba00d799b592b11ec3bd1d3f..a7775df6e40fafabe37ba0788bc1b53a8f850a2c 100644 --- a/module2/ressources/emacs_orgmode.org +++ b/module2/ressources/emacs_orgmode.org @@ -244,12 +244,23 @@ There are two situations in which it might be necessary to modify 1. Your network environment forces you to use a proxy for access to Web sites (HTTP(S) protocol). 2. You have multiple installations of Python or R on your computer, - or they are in unusual places and not fully configured. - If you can run - - =python3= and =R= under Linux and macOS - - =Python= and =R= under Windows - in a terminal without getting an error message, then you should - not have to do anything. + or they are in unusual places and not fully configured. *Note that this will be + the case if you followed our recommendation to use the Anaconda distribution.* + +For diagnosing your installation, do the following: +1. Open a new terminal, and try to run the following commands: + - =python3= and =R= under Linux and macOS + - =Python= and =R= under Windows + If you get no error message, all is gine. You should + not have to do anything to access Python and R from Emacs. +2. If you got an error message, you will have to track down where exactly + you installed Python and/or R. What you have to insert into =init.el= is the + complete path to each executable. For example, if you have installed Anaconda + under =/opt=, and if you have installed Python and/or R in Anaconda's default + environment, then the paths are =/opt/anaconda3/bin/python3= and + =/opt/anaconda3/bin/R=. If they are installed in an environment called + =mooc_rr=, the paths are =/opt/anaconda3/envs/mooc_rr/bin/python3= and + =/opt/anaconda3/envs/mooc_rr/bin/R=. If you do have to modify =init.el=, check the comments at the beginning of the file for instructions. diff --git a/module2/ressources/emacs_orgmode_fr.org b/module2/ressources/emacs_orgmode_fr.org index 3ce948e0d4407831bc819016c6e56dbf8fb0eb8d..e99ccb803c25f12f9f15cc1e68fbeb202df2cc32 100644 --- a/module2/ressources/emacs_orgmode_fr.org +++ b/module2/ressources/emacs_orgmode_fr.org @@ -241,12 +241,14 @@ Créez le répertoire =~/.emacs.d/= et copiez =rr_org/init.el= dedans. Il y a deux situations dans lesquelles il peut être nécessaire de modifier =init.el= : 1. Votre environnement réseau vous oblige à utiliser un proxy accéder à internet (protocole HTTP(S)). -2. Vous avez plusieurs installations de Python ou R sur votre ordinateur, ou bien elles se trouvent dans des endroits inhabituels ou ne sont pas entièrement configurées. - Si vous pouvez exécuter dans un terminal +2. Vous avez plusieurs installations de Python ou R sur votre ordinateur, ou bien elles se trouvent dans des endroits inhabituels ou ne sont pas entièrement configurées. *Ceci est notamment le cas si vous avez utilisé Anaconda pour installer Python et/ou R, comme nous le recommandons.* + +Voici comment évaluer votre installation : +1. Ouvrez un nouveau terminal, et essayez d'exécuter les commandes suivantes: - =python3= et =R= sous Linux et macOS - =Python= et =R= sous Windows - sans obtenir un message d'erreur, alors vous ne devriez pas avoir à - faire quoi que ce soit. + Si vous n'obtenez pas de message d'erreur, tout va bien et vous ne devriez pas avoir à faire quoi que ce soit pour accéder à Python et R sous Emacs. +2. Si vous avez eu un message d'erreur, il va falloir trouver où vous avez installé Python et/où R. Notez le chemin complet à chaque exécutable - c'est ce qu'il faut insérer dans votre =init.el=. Par exemple, si vous avez installé Anaconda sous =/opt=, et si par la suite vous avez mis Python et R dans l'environnment par défaut, vos exécutables sont à =/opt/anaconda3/bin/python3= et =/opt/anaconda3/bin/R=. S'ils sont dans un environnment qui s'appelle =mooc_rr=, les chemins sont =/opt/anaconda3/envs/mooc_rr/bin/python3= et =/opt/anaconda3/envs/mooc_rr/bin/R=. Si vous devez modifier =init.el=, regardez bien les commentaires dans le fichier =init.org= pour comprendre comment ça marche. ** Etape 5 : Vérifier si l'installation fonctionne ou non