jupyter
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| jupyter [2025/07/09 18:49] – astroadmin | jupyter [2025/12/04 19:40] (current) – astroadmin | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| - Item Choose a port that is not being used on Astronomy. Lets call it 1234. | - Item Choose a port that is not being used on Astronomy. Lets call it 1234. | ||
| - | - Open a command line terminal and type: " | + | - Open a command line terminal and type: " |
| - Enter your password at the prompt. The terminal may appear to hang; this is fine. | - Enter your password at the prompt. The terminal may appear to hang; this is fine. | ||
| Line 9: | Line 9: | ||
| To do this: | To do this: | ||
| - Open a second command line terminal. Type 'ssh my_login@astronomy.nmsu.edu' | - Open a second command line terminal. Type 'ssh my_login@astronomy.nmsu.edu' | ||
| - | - Launch jupyter-notebook with the command ' | + | |
| + | | ||
| - A short feed of messages will scroll by. Find the one that says "To access this notebook...", | - A short feed of messages will scroll by. Find the one that says "To access this notebook...", | ||
| - Copy the URL that starts with " | - Copy the URL that starts with " | ||
| - Paste the URL into your browser of choice. If all goes well, you'll be greeted by a the standard jupyter-notebook file browser screen! | - Paste the URL into your browser of choice. If all goes well, you'll be greeted by a the standard jupyter-notebook file browser screen! | ||
| + | |||
| + | === Important commands === | ||
| + | < | ||
| + | ssh username@astronomy.nmsu.edu -NL 1234: | ||
| + | |||
| + | conda activate py3.11 | ||
| + | |||
| + | jupyter-notebook --no-browser --port 1234 | ||
| + | </ | ||
| That's it! Now you can run Jupyter notebooks remotely to your heart' | That's it! Now you can run Jupyter notebooks remotely to your heart' | ||
| + | |||
| + | ====== Jupyter on Virgo ====== | ||
| + | |||
| + | If you want to run Jupyter on Virgo, it is slightly different, Virgo is not allowed to directly talk to the outside in the same way that Astornomy can, as such, things are slightly different: | ||
| + | |||
| + | From your local computer, you will want to run the command: | ||
| + | |||
| + | < | ||
| + | ssh -L 1236: | ||
| + | </ | ||
| + | |||
| + | Remember " | ||
| + | |||
| + | NOTE - you are double SSH' | ||
| + | |||
| + | Then, in the same term (**you do not need to open a second term**), you can run: | ||
| + | |||
| + | < | ||
| + | conda activate py3.11 | ||
| + | jupyter-notebook --no-browser --port 1236 | ||
| + | </ | ||
| + | |||
| + | Where the port number should match the one used in the orignial SSH. | ||
| + | |||
| + | You will then find the URL output by the command, and post that into your local broswer. | ||
| + | |||
| + | Note, with how SSH port forwarding works, since you jumped through astronomy first, and it is listening, you don't need to open a second shell. | ||
jupyter.1752086959.txt.gz · Last modified: by astroadmin
