Translations:JupyterNotebook/5/fr

From Alliance Doc
Revision as of 21:19, 24 October 2017 by Diane27 (talk | contribs) (Created page with "#Chargez le module Python. #:{{Command|module load python/3.5.2}} #Créez un nouvel environnement virtuel Python. #:{{Command|virtualenv $HOME/jupyter_py3}} #Activez votre nou...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  1. Chargez le module Python.
    Question.png
    [name@server ~]$ module load python/3.5.2
    
  2. Créez un nouvel environnement virtuel Python.
    Question.png
    [name@server ~]$ virtualenv $HOME/jupyter_py3
    
  3. Activez votre nouvel environnement virtuel Python.
    Question.png
    [name@server ~]$ source $HOME/jupyter_py3/bin/activate
    
  4. Installez Jupyter Notebook dans votre nouvel environnement virtuel Python.
    Question.png
    (jupyter_py3)[name@server $] pip install jupyter
    
  5. Dans votre nouvel environnement virtuel, créez un script (wrapper) pour lancer Jupyter Notebook.
    Question.png
    (jupyter_py3)[name@server $] echo -e '#!/bin/bash\nunset XDG_RUNTIME_DIR\njupyter notebook --ip $(hostname -f) --no-browser' > $VIRTUAL_ENV/bin/notebook.sh
    
  6. Enfin, rendez le script exécutable.
    Question.png
    (jupyter_py3)[name@server $] chmod u+x $VIRTUAL_ENV/bin/notebook.sh