User Tools

Site Tools


jupyter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
jupyter [2025/07/09 19:46] astroadminjupyter [2025/12/04 19:40] (current) astroadmin
Line 27: Line 27:
 That's it! Now you can run Jupyter notebooks remotely to your heart's content. That's it! Now you can run Jupyter notebooks remotely to your heart's content.
  
 +
 +====== 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:
 +
 +<code>
 +ssh -L 1236:localhost:1236 -J user@astronomy.nmsu.edu user@virgo
 +</code>
 +
 +Remember "1236" is just some arbitray open port on astronomy. 
 +
 +NOTE - you are double SSH'ing jumping through astronomy. You will have to input your password to BOTH astronomy and virgo (which should be the same). 
 +
 +Then, in the same term (**you do not need to open a second term**), you can run:
 +
 +<code>
 +conda activate py3.11
 +jupyter-notebook --no-browser --port 1236
 +</code>
 +
 +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.1752090392.txt.gz · Last modified: by astroadmin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki