Changes between Initial Version and Version 1 of cypress/RunningRonJupyterNoteBook


Ignore:
Timestamp:
06/10/2026 01:46:51 PM (4 days ago)
Author:
fuji
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • cypress/RunningRonJupyterNoteBook

    v1 v1  
     1= Launch R on Jupyter =
     2
     3== Getting started ==
     4On Cypress, download the script.
     5{{{
     6git clone https://gitlab.tulane.edu/fuji/launch-r-jupyter.git
     7}}}
     8Copy LaunchR-Jupyter.sh to the directory where you want to run the Jupyter Notebook, and edit it to customize the resource request to your needs. The default settings are shown below:
     9{{{
     10#SBATCH --qos=normal             # Quality of Service
     11#SBATCH --partition=centos7      # partition
     12#SBATCH --job-name=jupyter       # Job Name
     13#SBATCH --time=8:00:00           # WallTime
     14#SBATCH --nodes=1                # Number of Nodes
     15#SBATCH --ntasks-per-node=1      # Number of tasks (MPI processes)
     16#SBATCH --cpus-per-task=20       # Number of threads per task (OMP threads)
     17#SBATCH --mem=128000             # Request 128GB RAM
     18}}}
     19
     20== Submit a job ==
     21{{{
     22sbatch LaunchR-Jupyter.sh
     23}}}
     24
     25You can log out after submitting the job. You will receive an email once the job becomes active.
     26
     27== Jupyter Notebook Access Information ==
     28
     29Once the job becomes active, you will receive an email like below:
     30{{{
     31Jupyter is running at cypress01-058
     32token: 38e3c6cdf28b9d691677882cfcf62fbd217d35e1de7cc909
     33
     34Open a terminal and run the following command to create an SSH tunnel:
     35ssh -L 8888:127.0.0.1:8888 -J [email protected] cypress01-058
     36
     37Copy and paste below to your web browser to access Jupyter Notebook:
     38http://127.0.0.1:8888/?token=38e3c6cdf28b9d691677882cfcf62fbd217d35e1de7cc909
     39}}}
     40
     41== Create an SSH Tunnel ==
     42
     43Open a terminal and run the command in the email, for example,
     44{{{
     45ssh -L 8888:127.0.0.1:8888 -J [email protected] cypress01-058
     46}}}
     47This will create an SSH tunnel from your local computer to the Cypress computing node.
     48You may need to type a password to login Cypress.
     49
     50== Access Jupyter Notebook ==
     51
     52After logging in, keep the terminal open. Copy and paste the URL from the email into your web browser, or click the link to access the Jupyter Notebook.
     53
     54=== Start R session ===
     55
     56Select “New → R” from the drop-down menu in the upper-right corner of the Jupyter Notebook interface.
     57
     58=== When SSH connection lost ===
     59
     60When your SSH tunnel session is disconnected, you can still access your Jupyter Notebook session as long as the job is still running. If this happens, recreate the SSH tunnel and reload your web browser or reconnect using the original URL.
     61
     62=== Quit Jupyter Notebook Session ===
     63
     64Select “File → Shut Down” from the drop-down menu in the upper-left corner of the Jupyter Notebook interface.
     65