ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 30 Jun 2019 16:56:15 -0500jupyter notebook multi users ?http://ask.sagemath.org/question/43919/jupyter-notebook-multi-users/Hello,
I used to use notebook sagenb for teaching purposes.
Each student had a login and password to work on the same server.
I ran into several internal server errors 500 using it. so I though since it seems that jupyter notebook is more recommended I should try and switch to it.
However, I am concerned because I am not sure it allows the same type of multi-users server.
Hint from jupyter notebook login page that points to
https://jupyter-notebook.readthedocs.io/en/stable/public_server.html
tell me that it might not.
So the questions are:
1/ with "sage -n jupyter --ip='*'" is it possible to have 16 or so students connecting to the same server and working on similar worksheets (as it seemed to work rather smoothly for sagenb)?
2/ if not, is there another way to have sage use jupyter notebook for multi users?
3/ if not, is an install of jupyterhub or sagemathcloud reasonnable with no particular sysadmin skill?
4/ if not is there anything else I should try?
5/ if not, do some of you have experience of sagenb under sage 8.3 usability?
Installing sagemath on all computers is not an option for me at the moment.
Best regards,
b
PS : my sagemath on a debian 9 server compiled from source (I used to use debian packages but though it might work more smoothly with install from source)Thu, 11 Oct 2018 09:30:33 -0500http://ask.sagemath.org/question/43919/jupyter-notebook-multi-users/Answer by slelievre for <p>Hello,</p>
<p>I used to use notebook sagenb for teaching purposes.
Each student had a login and password to work on the same server.
I ran into several internal server errors 500 using it. so I though since it seems that jupyter notebook is more recommended I should try and switch to it.
However, I am concerned because I am not sure it allows the same type of multi-users server.
Hint from jupyter notebook login page that points to
<a href="https://jupyter-notebook.readthedocs.io/en/stable/public_server.html">https://jupyter-notebook.readthedocs....</a>
tell me that it might not.
So the questions are:</p>
<p>1/ with "sage -n jupyter --ip='*'" is it possible to have 16 or so students connecting to the same server and working on similar worksheets (as it seemed to work rather smoothly for sagenb)?</p>
<p>2/ if not, is there another way to have sage use jupyter notebook for multi users?</p>
<p>3/ if not, is an install of jupyterhub or sagemathcloud reasonnable with no particular sysadmin skill?</p>
<p>4/ if not is there anything else I should try?</p>
<p>5/ if not, do some of you have experience of sagenb under sage 8.3 usability?</p>
<p>Installing sagemath on all computers is not an option for me at the moment.</p>
<p>Best regards,</p>
<p>b
PS : my sagemath on a debian 9 server compiled from source (I used to use debian packages but though it might work more smoothly with install from source)</p>
http://ask.sagemath.org/question/43919/jupyter-notebook-multi-users/?answer=47021#post-id-47021Luca De Feo wrote a blog post about
- [Deploying a containerized JupyterHub server with Docker](https://opendreamkit.org/2018/10/17/jupyterhub-docker/)
Otherwise, you could deploy CoCalc, see:
- https://github.com/sagemathinc/cocalc-docker
- [Running your own free CoCalc server on Google Cloud Platform](https://blog.sagemath.com/cocalc/2018/11/07/cocalc-docker-gcp.html)Sun, 30 Jun 2019 16:56:15 -0500http://ask.sagemath.org/question/43919/jupyter-notebook-multi-users/?answer=47021#post-id-47021Answer by tmonteil for <p>Hello,</p>
<p>I used to use notebook sagenb for teaching purposes.
Each student had a login and password to work on the same server.
I ran into several internal server errors 500 using it. so I though since it seems that jupyter notebook is more recommended I should try and switch to it.
However, I am concerned because I am not sure it allows the same type of multi-users server.
Hint from jupyter notebook login page that points to
<a href="https://jupyter-notebook.readthedocs.io/en/stable/public_server.html">https://jupyter-notebook.readthedocs....</a>
tell me that it might not.
So the questions are:</p>
<p>1/ with "sage -n jupyter --ip='*'" is it possible to have 16 or so students connecting to the same server and working on similar worksheets (as it seemed to work rather smoothly for sagenb)?</p>
<p>2/ if not, is there another way to have sage use jupyter notebook for multi users?</p>
<p>3/ if not, is an install of jupyterhub or sagemathcloud reasonnable with no particular sysadmin skill?</p>
<p>4/ if not is there anything else I should try?</p>
<p>5/ if not, do some of you have experience of sagenb under sage 8.3 usability?</p>
<p>Installing sagemath on all computers is not an option for me at the moment.</p>
<p>Best regards,</p>
<p>b
PS : my sagemath on a debian 9 server compiled from source (I used to use debian packages but though it might work more smoothly with install from source)</p>
http://ask.sagemath.org/question/43919/jupyter-notebook-multi-users/?answer=43924#post-id-43924> 1/ with "sage -n jupyter --ip='*'" is it possible to have 16 or so students connecting to the same server and working on similar worksheets (as it seemed to work rather smoothly for sagenb)?
Jupyter is meant to use unix accounts as user accounts. So, theoretically, you are supposed to create 16 unix users on your system. Having access to such an account implies that users can do many things (they can execure arbitrary Python code on your system with classical user rights, this include looking at various files).
> 2/ if not, is there another way to have sage use jupyter notebook for multi users?
It is possible to just use only one guest user, and let all students connect to that account. I did that already, with each student usng her own dedcated subirectory (pre-filled with worksheets). It works well as long as the students are trustworthy, and will not play with the other student's directory.
> 3/ if not, is an install of jupyterhub or sagemathcloud reasonnable with no particular sysadmin skill?
You should give a try and see if you are able to do that, since "having no particular sysadmin skil" really depends on who is speaking... Regarding jupyterhub, there is plenty of docs, and step-by-step guides out there.
> 4/ if not is there anything else I should try?
Apparenty, the "isolation by container" (e.g. docker) is a current trend : one docker instance per user (it is a bit heavy though).
> 5/ if not, do some of you have experience of sagenb under sage 8.3 usability?
I would *not* recommend to start working with sagenb, since it is already deprecated, and might not pass the Python3 migration, so you are likely to invest a lot of time for a non-viable mid-term solution.
> Installing sagemath on all computers is not an option for me at the moment.
Let me witness sucessful use of Sage Debian Live (see https://sagedebianlive.metelu.net/). This is an easy-to-replicate live USB with Sage (and all optional packages, and LaTeX, and R, etc) installed, that ca be run without having to install anything on the computers. [disclaimer: i am the developper of SDL, though i got external reports of such experience].
If students can not have their own key, it is possible to use such a key to serve public notebooks as in 2/, without taking the risk of exposing you own private data. I might develop a jupyterhub (with Sage) automatic deployment icon in a future version of SDL (but it is currently not on the top of my todo list).
Thu, 11 Oct 2018 18:56:10 -0500http://ask.sagemath.org/question/43919/jupyter-notebook-multi-users/?answer=43924#post-id-43924