How do I run jupyter remotely from my workstation?
If you want to run jupyter on a compute machine or cluster, but view it locally on your workstation:
1) From your workstation, open up a terminal window and ssh to the cluster:
$ ssh username@(apollo-login1|typhon-login1).sns.ias.edu
,where username is your username. And apollo-login1 or typhon-login1 is the machine you are logging into.
or ssh to a math server:
$ ssh username@ssh4.math.ias.edu
If you have any doubts, please ask.
2) Load Anaconda to run Jupyter
$ module load anaconda/3
(If sage is loaded, first run module unload sage)
$ jupyter-notebook --no-browser --port=8889 --ip=127.0.0.1
# note the last line of the output which will be something like
http://127.0.0.1:8889/?token=61f8a2aa8ad5e469d14d6a1f59baac05a8d9577916bd7eb0
# leave the session running Then in a new terminal on your workstation:
$ ssh -N -f -L localhost:8889:localhost:8889 username@typhon-login1.sns.ias.edu
Lastly, open a web browser and *copy and paste* the URL from the previous output:
http://127.0.0.1:8889/?token=61f8a2aa8ad5e469d14d6a1f59baac05a8d9577916…