How to use Jupyter for multiuser environment
This section explains you how to use JupyterHub for providing multiuser environment for R-Developer Kit.
- login to jupyter hub using ubuntu
![/img/common/jupyterhub_signin.png](https://techlatest.net/img/common/jupyterhub_signin.png)
- 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](https://techlatest.net/img/gcp/r-studio-support/jupyter_home_page.png)
- 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](https://techlatest.net/img/gcp/r-studio-support/jupyter_with_R_kernel.png)
- create new user and login with the that user.
- To add new user, RDP to your VM, open terminal and enter below command.
![/img/gcp/r-studio-support/add_new_user.png](https://techlatest.net/img/gcp/r-studio-support/add_new_user.png)
- 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.
- login to jupyter with new user
![/img/gcp/r-studio-support/jupyter_login_with_new_user.png](https://techlatest.net/img/gcp/r-studio-support/jupyter_login_with_new_user.png)
- 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](https://techlatest.net/img/gcp/r-studio-support/jupyterhub_server_spawn.png)
- This is new user homepage.
![/img/gcp/r-studio-support/jupyter_home_page_new_user.png](https://techlatest.net/img/gcp/r-studio-support/jupyter_home_page_new_user.png)
- 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](https://techlatest.net/img/gcp/r-studio-support/rdp_with_new_user.png)
![/img/gcp/r-studio-support/rdp-desktop-for-new-user.png](https://techlatest.net/img/gcp/r-studio-support/rdp-desktop-for-new-user.png)
![/img/gcp/r-studio-support/r-studio-for-new-user.png](https://techlatest.net/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.