Open navneetkrverma opened 5 years ago
@navneetkrverma You seem to be mixing up two different methods. For the jupyter-rsession-proxy
method, you are not supposed to use RStudio profile entry - you will get an Rsession entry in the kernels menu. After installing and configuring jupyter-rsession-proxy
and standard Z2JH setup (as described in https://github.com/jupyterhub/zero-to-jupyterhub-k8s/issues/990), you should be able to see and use RStudio menu entry (or set it up as default, if your cluster is dedicated to RStudio). On the other hand, if you want to use an alternative method (which I have used), you need to build relevant Docker image (using jupyter-repo2docker
), push it to a public or private Docker registry and then reference it in your config.yaml
(or values.yaml
) file. After that, perform helm upgrade
and it should work. I hope that this helps. Additional suggestion: edit code blocks and use triple backticks to make them readable.
Thanks for information @ablekh. I am not looking for launching rstudio from kernel. I want to launch it as part of profile list served to jupterhub spawner. S yes, i got clarity, i should not be installing jupyter-rsession-proxy. As I want profilelist solution for my use case, i am wondering how have you generated rstudio docker image using repo2docker? I would be using this image in profilelist as one more entry in jupyterhub config.yaml.
Thanks for suggestion to use triple backticks, updated that.
@navneetkrverma You're welcome. I think that you still need jupyter-rsession-proxy
(I used it, but I implemented RStudio solution as a separate cluster, not as profile list-based solution). If you want to use the latter, then you would need to somehow use Rocker Docker or similar images (that was my original idea - see discussion in https://github.com/jupyterhub/zero-to-jupyterhub-k8s/issues/990, but I have abandoned that idea due to lack of knowledge on how to actually use Rocker images with JupyterHub). Perhaps, somebody else could advise you on this, but, if you need the solution soon, I would use working approaches (RStudio as menu item or RStudio as a separate cluster).
Re: how to build your custom Docker image - see documentation: https://repo2docker.readthedocs.io (including this section: https://repo2docker.readthedocs.io/en/latest/howto/user_interface.html#rstudio).
I've built an RStudio image that presents as an option in a z2jh spawner options page and launches successfully.
The docker image is here.
This is a sample bash script that deploys the helm script and then updates the values.yaml.
It's suited to my purposes, but maybe it will help you?
Thank you @riazarbi for sharing your knowledge and insight. I will try these options and update them here by this weekend. Thanks
Hi @navneetkrverma did it work?
I have installed jupyterhub on linux box using z2jh guide. i have configured multiple profile lists and i am able to work with the profiles given on z2jh document. (https://zero-to-jupyterhub.readthedocs.io/en/latest/user-environment.html#using-multiple-profiles-to-let-users-select-their-environment). I have followed #990 and #69 to set it up. However, when i tried the issue threads to add one more image for Rstudio in jupyter hub; it did not work for me and i keep getting 404 as follows:
Steps which i followed: 1.) install and run z2jh
2.) sl config.yaml in step 1
3.) login to jh, and i see the options from profile list
4.) choosing rstudio and click on spawn
5.) rstudio dockerfile content
@mathematicalmichael @trallard @ablekh can you please help me out here?
Thanks