Commit dcb86d05 authored by Konrad Hinsen's avatar Konrad Hinsen

Documentation plus complète pour configurer Emacs pour Anaconda

parent af506038
...@@ -244,12 +244,23 @@ There are two situations in which it might be necessary to modify ...@@ -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 1. Your network environment forces you to use a proxy for access
to Web sites (HTTP(S) protocol). to Web sites (HTTP(S) protocol).
2. You have multiple installations of Python or R on your computer, 2. You have multiple installations of Python or R on your computer,
or they are in unusual places and not fully configured. or they are in unusual places and not fully configured. *Note that this will be
If you can run the case if you followed our recommendation to use the Anaconda distribution.*
- =python3= and =R= under Linux and macOS
- =Python= and =R= under Windows For diagnosing your installation, do the following:
in a terminal without getting an error message, then you should 1. Open a new terminal, and try to run the following commands:
not have to do anything. - =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 If you do have to modify =init.el=, check the comments at the
beginning of the file for instructions. beginning of the file for instructions.
......
...@@ -241,12 +241,14 @@ Créez le répertoire =~/.emacs.d/= et copiez =rr_org/init.el= dedans. ...@@ -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 Il y a deux situations dans lesquelles il peut être nécessaire de modifier
=init.el= : =init.el= :
1. Votre environnement réseau vous oblige à utiliser un proxy accéder à internet (protocole HTTP(S)). 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. 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.*
Si vous pouvez exécuter dans un terminal
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 - =python3= et =R= sous Linux et macOS
- =Python= et =R= sous Windows - =Python= et =R= sous Windows
sans obtenir un message d'erreur, alors vous ne devriez pas avoir à 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.
faire quoi que ce soit. 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. 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 ** Etape 5 : Vérifier si l'installation fonctionne ou non
......
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