rsnt_translations
56,437
edits
(Created page with "== Installation ==") |
(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...") |
||
Line 15: | Line 15: | ||
These instructions install Jupyter Notebook with the <code>pip</code> command in a [[Python#Creating_and_using_a_virtual_environment | Python virtual environment]] in your home directory. The following instructions are for Python 3.5.2, but you can also install the application for a different version by loading a different Python module. | These instructions install Jupyter Notebook with the <code>pip</code> command in a [[Python#Creating_and_using_a_virtual_environment | Python virtual environment]] in your home directory. The following instructions are for Python 3.5.2, but you can also install the application for a different version by loading a different Python module. | ||
# | #Chargez le module Python. | ||
#:{{Command|module load python/3.5.2}} | #:{{Command|module load python/3.5.2}} | ||
# | #Créez un nouvel environnement virtuel Python. | ||
#:{{Command|virtualenv $HOME/jupyter_py3}} | #:{{Command|virtualenv $HOME/jupyter_py3}} | ||
# | #Activez votre nouvel environnement virtuel Python. | ||
#:{{Command|source $HOME/jupyter_py3/bin/activate}} | #:{{Command|source $HOME/jupyter_py3/bin/activate}} | ||
# | #Installez Jupyter Notebook dans votre nouvel environnement virtuel Python. | ||
#:{{Command | #:{{Command | ||
|prompt=(jupyter_py3)[name@server $] | |prompt=(jupyter_py3)[name@server $] | ||
|pip install jupyter}} | |pip install jupyter}} | ||
# | #Dans votre nouvel environnement virtuel, créez un script (''wrapper'') pour lancer Jupyter Notebook. | ||
#:{{Command | #:{{Command | ||
|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\nunset XDG_RUNTIME_DIR\njupyter notebook --ip $(hostname -f) --no-browser' > $VIRTUAL_ENV/bin/notebook.sh | ||
}} | }} | ||
# | #Enfin, rendez le script exécutable. | ||
#:{{Command | #:{{Command | ||
|prompt=(jupyter_py3)[name@server $] | |prompt=(jupyter_py3)[name@server $] |