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 15:44] msovara [Starting a notebook inside a job] |
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 72: | Line 72: | ||
| There might be a cleaner way of doing this... Please let us know if you have one! | There might be a cleaner way of doing this... Please let us know if you have one! | ||
| - | **VERY IMPORTANT: | + | **VERY IMPORTANT: |
| - | Open a terminal on your local machine and create a .ssh/config file. If your desktop system runs Windows, a simple way to deal with this is to run a unix-like environment inside Windows. | + | Open a terminal on your local machine and create a '' |
| < | < | ||
| touch .ssh/config | touch .ssh/config | ||
| </ | </ | ||
| + | |||
| + | If your desktop system runs Windows, a simple way to deal with this is to run a unix-like environment inside Windows. | ||
| + | |||
| Continue to edit the '' | Continue to edit the '' | ||
| Line 90: | Line 93: | ||
| + | **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... | ||
| - | What this will do is allow you to '' | + | In your browser go to: http:// |
| - | The jobscript | + | The jobscript |
| <file bash jupyter.qsub> | <file bash jupyter.qsub> | ||
| #!/bin/bash | #!/bin/bash | ||
| Line 120: | 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:// | + | |
| + | |||