This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
playground:playground [2021/03/02 13:30] msovara [Security] |
playground:playground [2025/04/29 16:06] (current) nmfuphi [Starting a notebook inside a job] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== **Playground Test edits by MSovara** ====== | + | ====== **Edits by MSovara** ====== |
| ===== Jupyter / Ipython Notebook ===== | ===== Jupyter / Ipython Notebook ===== | ||
| Line 70: | Line 70: | ||
| ==== Starting a notebook inside a job ==== | ==== Starting a notebook inside a job ==== | ||
| - | There might be a cleaner way of doing this... Please let me know if you have one! | + | There might be a cleaner way of doing this... Please let us know if you have one! |
| - | **Read here first.** Do not add the lines below to your .ssh/config file on the cluster, you //will// break any attempt at parallel processing! | + | **VERY IMPORTANT:** Do not add the lines below to your .ssh/config file on the cluster, you //WILL// break any attempt at parallel processing! |
| - | First you need to edit your '' | + | Open a terminal on your local machine and create a '' |
| + | |||
| + | < | ||
| + | touch .ssh/ | ||
| + | </ | ||
| + | |||
| + | If your desktop system runs Windows, a simple way to deal with this is to run a unix-like environment inside Windows. | ||
| + | |||
| + | |||
| + | Continue | ||
| < | < | ||
| Host cnode* | Host cnode* | ||
| Line 83: | Line 92: | ||
| </ | </ | ||
| - | If your desktop system runs Windows, a simple way to deal with this is to run a unix-like environment inside Windows. | ||
| - | What this will do is allow you to '' | + | **Note** |
| + | -//Each session will be assigned a different compute node (cnode* changes everytime you request for an interactive compute node session)// | ||
| + | -//Use localForward and localhost port number provided for each different session.// | ||
| + | |||
| + | Ultimately, what this will do is allow you to '' | ||
| + | |||
| + | < | ||
| + | ssh cnode* | ||
| + | </ | ||
| + | |||
| + | You should be prompted for your password, twice. This is because the '' | ||
| + | |||
| + | You are now ready to roll... | ||
| + | |||
| + | In your browser go to: http:// | ||
| - | The jobscript | + | The jobscript |
| <file bash jupyter.qsub> | <file bash jupyter.qsub> | ||
| #!/bin/bash | #!/bin/bash | ||
| Line 114: | Line 136: | ||
| Then, again on your local machine, you need to connect to the compute node, i.e. '' | Then, again on your local machine, you need to connect to the compute node, i.e. '' | ||
| - | Finally in your browser go to: http:// | + | |
| + | |||