NASA-IMPACT / veda-jupyterhub

VEDA JupyterHub technical planning and documentation
1 stars 1 forks source link

Users can get "stuck" inside RStudio interface #35

Open batpad opened 4 months ago

batpad commented 4 months ago

We got this from a user last week:

"I do not use R, but accidentaly started an Rstudio through https://hub.openveda.cloud/. Now I could not get out that environment. I am automatically directed to the R environment after log in through my github and could no longer see the list of environment choice. This may be a bug. Need your help. Thanks a lot."

The solution / workaround for this currently is to manually change the URL to https:///hub/home to get to the server management screen where you can Stop the R Studio server and when you start a new one, you will be taken to the profile options screen.

This is not at all intuitive from a user perspective and it would be nice to have a way to get to the Stop Server screen from within the RStudio interface without needing to manually change the URL. The problem is that in the R Studio container, we just render the R Studio interface, and don't have a straightforward way of modifying it.

Of course, this is an issue that other folks have run into, and there is this issue open for 4+ years: https://github.com/jupyterhub/jupyter-rsession-proxy/issues/90 . The problem is that over-riding the logout button in the R Studio interface is not so straightforward.

There would be a slightly "ugly" way to do this. From conversation with @yuvipanda -

We already have a function that takes a request and returns a response: https://github.com/jupyterhub/jupyter-rsession-proxy/blob/216d9e5e65f0a16af34cf1bafc418c4daa1e08d6/jupyter_rsession_proxy/__init__.py#L34

"all you gotta do is: