JupyterNotebook/fr: Difference between revisions

Jump to navigation Jump to search
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..."
(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.


#Load the Python module.
#Chargez le module Python.
#:{{Command|module load python/3.5.2}}
#:{{Command|module load python/3.5.2}}
#Create a new Python virtual environment.
#Créez un nouvel environnement virtuel Python.
#:{{Command|virtualenv $HOME/jupyter_py3}}
#:{{Command|virtualenv $HOME/jupyter_py3}}
#Activate your newly created Python virtual environment.
#Activez votre nouvel environnement virtuel Python.
#:{{Command|source $HOME/jupyter_py3/bin/activate}}
#:{{Command|source $HOME/jupyter_py3/bin/activate}}
#Install Jupyter Notebook in your new virtual environment.
#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}}
#In the virtual environment, create a wrapper script that launches Jupyter Notebook.  
#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
}}
}}
#Finally, make the script executable.
#Enfin, rendez le script exécutable.
#:{{Command
#:{{Command
|prompt=(jupyter_py3)[name@server $]
|prompt=(jupyter_py3)[name@server $]
rsnt_translations
56,430

edits

Navigation menu