Search Mailing List Archives
[farmshare-discuss] Class-Accessible Jupyter Notebook
vsochat at stanford.edu
Sun Jan 7 07:30:46 PST 2018
I'll leave the particulars of discussion for rice to the admins (my
intuition is that allowing ports opened on a cluster node is not going to
be allowed) but I'd recommend that you set up an equivalently easy "start
up" environment by using Docker. This does mean that your students will
have to install docker on their machines, but then you could produce the
equivalent "ready to go" environment by just starting a container, and
mapping it to the host. I'd be glad to help you with this if it sounds like
a good option.
The jupyterhub idea is really great too - afaik we don't have the webby
spaces with open ports to support that. I can chat with my group (most on
this list, please chime in!) to discuss what might be some options for that.
On Sun, Jan 7, 2018 at 4:04 AM, Sam Redmond <sredmond at stanford.edu> wrote:
> Hello all,
> This may be more a question for general SRCC than FarmShare, but I teach
> an introductory course on Python and I would like to lower the barrier for
> students getting started with Python.
> Is there a way to set up a job on FarmShare such that students in my class
> can connect to a Jupyter notebook through a browser running (proxied to) on
> a rice login node as themselves? Essentially, I would like each student to
> be able to run Python code as themselves on rice, but without "dealing
> with" SSH and CLI tools (the course is targeted towards beginners).
> Basically, I want to emulate the behavior of
> local$ ssh username at rice.stanford.edu
> rice$ module load anaconda3
> rice$ pip3 install class-specific-libraries
> rice$ jupyter notebook
> ... quit the command line interface ...
> Copy/paste this URL into your browser when you connect for the first
> to login with a token:
> * NEW WINDOW *
> local$ ssh username at rice.stanford.edu -L 8888:localhost:8888
> * visit localhost:8888?token=foobar on local broswer *
> without all the set-up "hassle."
> It would be amazing if my students could visit cs41.stanford.edu/notebook,
> authorize with something like webauth (with 2FA required each time since
> rice requires 2FA), and land in a jupyter notebook.
> Another approach would be to have a Stanford-controlled JupyterHub [
> https://github.com/jupyterhub/jupyterhub] hub running as root somewhere,
> spawning single-user servers for students of all courses as needed. I would
> set one up myself but it seems like there's a lot of difficulty in
> configuring a jupyterhub process running as non-root to still be allowed to
> spawn single-user servers running as other users on the system [
> Of course, I'm more than happy to come meet with someone in person during
> the winter quarter to hash this all out.
> Sam Redmond
> M.S. Candidate, Computer Science
> B.S. Candidate, Computer Science and Mathematics
> Stanford University | Class of 2018
> (650) 644-6160
> farmshare-discuss mailing list
> farmshare-discuss at lists.stanford.edu
Vanessa Villamia Sochat
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the farmshare-discuss