Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

  1. ssh into the cluster ssh -X <userID>@sporcsubmit.rc.rit.edu
  2. start a sinterative job with the configuration that you will need (e.g. memory, cores, time, gres)
  3. load jupyter notebook 
    • spack load py-notebook/hfaavup or the version you require
    • to find other versions use spack find py-notebook
  4. start jupyter notebook jupyter notebook --ip=0.0.0.0 --no-browser
    [demo@skl-a-47 ~]$ jupyter notebook --ip=0.0.0.0 --no-browser
    [I 10:47:16.816 NotebookApp] The port 8888 is already in use, trying another port.
    [I 10:47:16.820 NotebookApp] Serving notebooks from local directory: /home/slpits
    [I 10:47:16.820 NotebookApp] The Jupyter Notebook is running at:
    [I 10:47:16.820 NotebookApp] http://skl-a-47.rc.rit.edu:8889/?token=803f723f3d20e5e93d24af7073c822c3e77387ce7e15e5cd
    [I 10:47:16.820 NotebookApp]  or http://127.0.0.1:8889/?token=803f723f3d20e5e93d24af7073c822c3e77387ce7e15e5cd
    [I 10:47:16.820 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
    [C 10:47:16.823 NotebookApp]

        To access the notebook, open this file in a browser:
    file:///home/slpits/.local/share/jupyter/runtime/nbserver-27411-open.html
        Or copy and paste one of these URLs:
    http://skl-a-47.rc.rit.edu:8889/?token=803f723f3d20e5e93d24af7073c822c3e77387ce7e15e5cd
         or http://127.0.0.1:8889/?token=803f723f3d20e5e93d24af7073c822c3e77387ce7e15e5cd
    [I 10:56:29.944 NotebookApp] 302 GET /?token=803f723f3d20e5e93d24af7073c822c3e77387ce7e15e5cd (129.21.171.201) 0.50ms

  5. From a new local terminal window ssh into sporcsubmit using the -L flag
  6. To access the notebook, copy and paste the appropriate URL from the output above into a browser.

...

Loading Python in your Terminal

The Jupyter Notebook relies on Python, so you must load in a version of Python that works with Jupyter. The following line should be written in the command line:

  1. $ module load python/3.7.2-gcc-7.4.0-6on2qnpy

This will have to be reloaded every time you start a new session, or you can see how to load modules permanently in the "Using Modules" article.

Installing Anaconda

Anaconda is the program that is used to create the Jupyter Notebook. Complete the following commands and instructions in your terminal to install:

  1. cd ~/Downloads
  2. $ wget https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh
  3. bash ./Anaconda3-2019.03-Linux-x86_64.sh.
  4. Hit enter to scroll through terms and conditions and answer yes to all questions
  5. $ cd ~
  6. $ source ~/.bashrc

anaconda3 should now be visible as directory off of your user directory(enter the command "$ ls" in the command line, while in your home directory to view this).

Creating the Jupyter Notebook

Now that anaconda is installed, setting up a Jupyter Notebook is all that is left. The following commands will set up your configuration files, and a password to be used for others to access the notebook.

Complete the Following steps in your terminal:

  1. $ cd ~/anaconda3

  2. $ cd bin

  3. $ ./jupyter notebook --generate-config

  4. $ ./jupyter notebook password

  5. Enter and verify the password you would like your notebook to have

  6. $ ./jupyter notebook

A browser should open in your fastX session with your Jupyter Notebook. You will be prompted for the password you just set up, and the Notebook should be ready to use.

Information about the notebook, such as the URL other users need to access the notebook, will be shown in the terminal.

Opening a Previously Created Notebook

Creator

Enter in Terminal:

  1. $ module load python/3.7.2-gcc-7.4.0-60n2qnpy  #only needed if not set to be auto-loaded when the session is created

  2. $ cd ~/anaconda3

  3. $ cd bin

  4. $ ./jupyter notebook

Other User

In your fastX session, open up activities and select firefox to open a browser. The creator of the Notebook will have to give you the URL and password for the notebook. Enter the URL given to you in the browser, and enter the password when prompted. You should then have access and be ready to use the Notebook.

If there are any further questions, or there is an issue with the documentation, please contact rc-help@rit.edu for additional assistance.

 

...

Contenu par étiquette
showLabelsfalse
max5
spacesrc
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "rc"
labelskb-how-to-article

...

hiddentrue

...