Changes between Version 7 and Version 8 of cypress/JupyterNode


Ignore:
Timestamp:
12/04/23 16:23:28 (12 months ago)
Author:
cbaribault
Comment:

Updated for use with required token

Legend:

Unmodified
Added
Removed
Modified
  • cypress/JupyterNode

    v7 v8  
    88 '''Replace '12345' with a big number you like'''.
    99
    10 2. Move to a directory you want to work on, start an interactive session with port-forwarding. '''Replace '12345' with the big number you specified above'''.
     102. On Cypress, move to your desired directory (see the [[BasicLinuxComands#cd|cd]] command) for containing either existing or future notebook files - usually with file extension '''.ipynb'''.
     113. Start an interactive session with port-forwarding. '''Replace '12345' with the same big number you specified above'''. If you need Centos 7 with glibc 2.17, then include in your idev command the idev parameter '''--partition=centos7'''. (See [[using#Requestingpartitioncentos7withglibc2.17|Centos 7/glibc 2.17]] and [[using#Options|idev options]].)
    1112{{{
    1213[userID@cypress2 Python]$ idev --port=12345:8888 -t 8 -c 1
     
    2324}}}
    2425
    25 3. Load the module and start jupyter notebook server.
     264. Load the module and start jupyter notebook server.
    2627{{{
    2728[userID@cypress01-093 Python]$ module load anaconda3
    28 [userID@cypress01-093 Python]$ jupyter notebook
     29[userID@cypress01-093 Python]$ jupyter notebook --port=8888 --no-browser
    2930}}}
    3031
    31 4. Access [http://localhost:8888/] with your local web browser.
     325. Examine the resulting output in your terminal window and locate any occurrence of a string starting with '''http:^^/^^/''' and including a parameter named '''token''' assigned to a string of hexadecimal digits (0-9,a-f). The former string is a URL for your own personal use to authenticate the current notebook session.
     33{{{
     34http://localhost:8888/?token=9a84272b92849f6d560e0068de58a4b2a4ab0cb00387bf36 (example only)
     35}}}
     36{{{
     37http://127.0.0.1:8888/?token=9a84272b92849f6d560e0068de58a4b2a4ab0cb00387bf36 (example only)
     38}}}
     39
     406. Using your own personal URL from above from your terminal window (not the example above), copy and paste that URL to the address field in your local web browser, and press <Enter> and observe the notebook web page in your browser.
    3241
    3342'''Note: your ''jupyter notebook'' session will be killed when the idev-session time exceeds the walltime limit (that is 8 hours in the example above).'''