Go back

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

/img/common/jupyterhub_signin.png

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

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

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

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

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

/img/gcp/r-studio-support/add_new_user.png

  1. 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.
  2. login to jupyter with new user

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

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

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

  1. This is new user homepage.

/img/gcp/r-studio-support/jupyter_home_page_new_user.png

  1. 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.

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

/img/gcp/r-studio-support/rdp-desktop-for-new-user.png

/img/gcp/r-studio-support/r-studio-for-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.
Go back