Translations:JupyterNotebook/5/fr: Difference between revisions

From Alliance Doc
Jump to navigation Jump to search
m (FuzzyBot moved page Translations:Jupyter/5/fr to Translations:JupyterNotebook/5/fr without leaving a redirect: Part of translatable page "Jupyter")
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<ol>
<ol>
<li>Chargez le module Python.
<li>Chargez le module Python.
{{Command2|module load python/3.6}}
{{Command2|module load python/3.7}}
<li>Créez un nouvel environnement virtuel Python.
<li>Créez un nouvel environnement virtuel Python.
{{Command2|virtualenv $HOME/jupyter_py3}}
{{Command2|virtualenv $HOME/jupyter_py3}}
Line 7: Line 7:
{{Command2|source $HOME/jupyter_py3/bin/activate}}
{{Command2|source $HOME/jupyter_py3/bin/activate}}
<li>Installez Jupyter Notebook dans votre nouvel environnement virtuel Python.
<li>Installez Jupyter Notebook dans votre nouvel environnement virtuel Python.
{{Command2
{{Commands2
|prompt=(jupyter_py3)_[name@server ~]$
|prompt=(jupyter_py3)_[name@server ~]$
|pip install jupyter}}
|pip install --no-index --upgrade pip
<li>Dans votre nouvel environnement virtuel, créez un script (''wrapper'') pour lancer Jupyter Notebook.  
|pip install --no-index jupyter
}}
<li>Dans votre nouvel environnement virtuel, créez un script (<i>wrapper</i>) pour lancer Jupyter Notebook.  
{{Command2
{{Command2
|prompt=(jupyter_py3)_[name@server ~]$
|prompt=(jupyter_py3)_[name@server ~]$
|echo -e '#!/bin/bash\nunset XDG_RUNTIME_DIR\njupyter notebook --ip $(hostname -f) --no-browser' > $VIRTUAL_ENV/bin/notebook.sh
|echo -e '#!/bin/bash\nexport JUPYTER_RUNTIME_DIR{{=}}$SLURM_TMPDIR/jupyter\njupyter notebook --ip $(hostname -f) --no-browser' > $VIRTUAL_ENV/bin/notebook.sh
}}
}}
<li>Enfin, rendez le script exécutable.
<li>Enfin, rendez le script exécutable.

Latest revision as of 19:48, 1 November 2023

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (JupyterNotebook)
<ol>
<li>Load the Python module.
{{Command2|module load python/3.7}}
<li>Create a new Python virtual environment.
{{Command2|virtualenv $HOME/jupyter_py3}}
<li>Activate your newly created Python virtual environment.
{{Command2|source $HOME/jupyter_py3/bin/activate}}
<li>Install Jupyter Notebook in your new virtual environment.
{{Commands2
|prompt=(jupyter_py3) [name@server ~]$
|pip install --no-index --upgrade pip
|pip install --no-index jupyter
}}
<li>In the virtual environment, create a wrapper script that launches Jupyter Notebook. 
{{Command2
|prompt=(jupyter_py3)_[name@server ~]$
|echo -e '#!/bin/bash\nexport JUPYTER_RUNTIME_DIR{{=}}$SLURM_TMPDIR/jupyter\njupyter notebook --ip $(hostname -f) --no-browser' > $VIRTUAL_ENV/bin/notebook.sh
}}
<li>Finally, make the script executable.
{{Command2
|prompt=(jupyter_py3)_[name@server ~]$
|chmod u+x $VIRTUAL_ENV/bin/notebook.sh
}}
</ol>
  1. Chargez le module Python.
    [name@server ~]$ module load python/3.7
    
  2. Créez un nouvel environnement virtuel Python.
    [name@server ~]$ virtualenv $HOME/jupyter_py3
    
  3. Activez votre nouvel environnement virtuel Python.
    [name@server ~]$ source $HOME/jupyter_py3/bin/activate
    
  4. Installez Jupyter Notebook dans votre nouvel environnement virtuel Python.
    (jupyter_py3)_[name@server ~]$ pip install --no-index --upgrade pip
    (jupyter_py3)_[name@server ~]$ pip install --no-index jupyter
    
  5. Dans votre nouvel environnement virtuel, créez un script (wrapper) pour lancer Jupyter Notebook.
    (jupyter_py3)_[name@server ~]$ echo -e '#!/bin/bash\nexport JUPYTER_RUNTIME_DIR=$SLURM_TMPDIR/jupyter\njupyter notebook --ip $(hostname -f) --no-browser' > $VIRTUAL_ENV/bin/notebook.sh
    
  6. Enfin, rendez le script exécutable.
    (jupyter_py3)_[name@server ~]$ chmod u+x $VIRTUAL_ENV/bin/notebook.sh