JupyterHub - am I using it correctly...?

30 views
Skip to first unread message

Alf

unread,
Nov 24, 2016, 1:49:35 AM11/24/16
to Project Jupyter
Hi,

following situation:
10 people need reading access to a jupyter notebook, only I have writing access to it (I will maintain it). The idea is that those 10 people can change a few parameters in some cells and run them to see the effect (without the need of saving anything). Note that we are all in the same intranet.

What I have done:
Setup a jupyterhub configuration on my desktop PC doing the following:
  1. $ sudo apt-get install nodejs-legacy npm
  2. $ sudo npm install -g configurable-http-proxy
  3. $ sudo apt-get install python3-pip
  4. $ sudo pip3 install "ipython[notebook]"
    $ sudo pip3 install jupyterhub
    $ git clone https://github.com/jupyter/jupyterhub.git
    $ cd jupyterhub
    $ sudo pip3 install -r dev-requirements.txt -e .
  5. $ sudo python3 setup.py js
    $ sudo python3 setup.py css

Create a user which should be the one who my colleagues will use to login to the jupyter notebook

  1. $ sudo adduser --home <folder_with_jupyter_notebook> user42
  2. $ sudo chown user42:user42 <folder_with_jupyter_notebook>
  3. $ sudo chmod 777 <folder_with_jupyter_notebook>

When I now login with the new user user42 and start jupyterhub (and leave it running), I can then send my colleagues the address <my-ip-address>:8000 which they type in their browser and they can all (simultaneously) login with user42 and use/play with the jupyter notebook.


I have the feeling that I am doing something (terribly?) wrong as I allow my colleagues basically to login to my PC and I am afraid that this might use a lot of system resources? Any way of restricting that or of a better way to allow my colleagues to have an interactive Jupyter notebook in their browser running?
(We also have computational clusters but I do not have root access their and cannot install jupyterhub :( )


Thanks!

Reply all
Reply to author
Forward
0 new messages