ucsf-wynton / wynton-website-hpc

The Official Wynton HPC User Website
https://wynton.ucsf.edu/hpc/
2 stars 14 forks source link

Jupyter: Simplified instructions by assuming same port on localhost and dev node #75

Closed HenrikBengtsson closed 1 year ago

HenrikBengtsson commented 2 years ago

If one can assume that the port used on the dev node is available on user's local machine, then one can simplify the instructions on https://wynton.ucsf.edu/hpc/howto/jupyter.html a bit:

The downside is that this trick blurs the what's going on with local and remote ports, if there's a port clash. However, the risk for a port clash on localhost is much lower than on the dev nodes.

HenrikBengtsson commented 1 year ago

@ellestad @murashka-ucsf , I think I saw a recent support email where one of you suggested to use:

-L 47467:localhost:47467

instead of

-L 8888:localhost:47467

as suggested on the website (https://wynton.ucsf.edu/hpc/howto/jupyter.html).

I just got a question how to do this from a C4 user, and I think they might miss that they need to tweak the URL that Jupyter outputs so it uses port 8888 instead.

I'm starting to think that using the same localhost port as dev-node port would remove some of the potential potholes, and it would simplify the instructions a big. What do you think?

HenrikBengtsson commented 1 year ago

I've made these updates now. This way, the HTTP links outputted by Jupyter works as-is. No need for the user to edit/modify the URL. This means that most users can click on the link directly in the terminal.

I updated https://wynton.ucsf.edu/hpc/howto/rstudio.html the same way.