Ask Your Question
2

jupyter notebook multi users ?

asked 2018-10-11 16:30:33 +0100

bb16 gravatar image

updated 2018-10-11 16:31:07 +0100

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

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2018-10-12 01:56:10 +0100

tmonteil gravatar image

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

edit flag offensive delete link more
0

answered 2019-06-30 23:56:15 +0100

slelievre gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-10-11 16:30:33 +0100

Seen: 2,495 times

Last updated: Jun 30 '19