How to use Jupyter for multiuser environment

This section explains you how to use JupyterHub for providing multiuser environment for R-Developer Kit.

  1. login to jupyter hub using ubuntu

  2. /img/common/jupyterhub_signin.png

  3. This will log you as an ubuntu user to the jupyterhub notebook.By default R-Developer Kit comes with ubuntu user.

  4. /img/gcp/r-studio-support/jupyter_home_page.png

  5. This VM comes with Jupyter with R-Kernel which provides a browser based IDE with the ability to create and share R based notebooks

  6. /img/gcp/r-studio-support/jupyter_with_R_kernel.png

  7. create new user and login with the that user.
  8. To add new user, RDP to your VM, open terminal and enter below command.
  9. sudo adduser "username"


  10. This will create the new user. Fullsetup is copied into the home directory of new user.
    Each added user will get a separate R environment with R-Studio, Jupyter notebook and GUI desktop.
  11. login to jupyter with new user

  12. /img/gcp/r-studio-support/jupyter_login_with_new_user.png

  13. New server will spawn for this user which will have completely seperate ipython/jupyter enviroment from ubuntu user.

  14. /img/gcp/r-studio-support/jupyterhub_server_spawn.png

  15. This is new user homepage.
  16. /img/gcp/r-studio-support/jupyter_home_page_new_user.png

  17. R environment with R-Studio is created on desktop for new user. RDP to your VM and login with new user created in above step 5.

  18. /img/gcp/r-studio-support/rdp_with_new_user.png



    • This way Jupyterhub is used to create jupyter/ipython enviroment for multiple users.Instead of subscribing to multiple VMs, one can subscribe to single VM and create multiple user to use the notebook.
    • It can be used in a classes of students, a corporate data science group or scientific research group.
    • It is a multi-user Hub that spawns, manages, and proxies multiple instances of the single-user Jupyter notebook server.