Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[farmshare-discuss] farmshare-discuss Digest, Vol 70, Issue 2

Ismael Lemhadri lemhadri at stanford.edu
Sun Jan 7 14:26:24 PST 2018


Hi Sam,
Have you had a look at this?
/afs/ir.stanford.edu/group/bil/env/scripts
It was set up by Pr. Paul Nuyujukian for a class some time ago and is still
fully functional. It may help you achieve what you want in terms of ease of
access.
More details here:
https://web.stanford.edu/group/farmshare/cgi-bin/wiki/
index.php/Jupyter#Custom_Jupyter_notebook


On Sun, Jan 7, 2018 at 9:01 PM, <
farmshare-discuss-request at lists.stanford.edu> wrote:

> Send farmshare-discuss mailing list submissions to
>         farmshare-discuss at lists.stanford.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://mailman.stanford.edu/mailman/listinfo/farmshare-discuss
> or, via email, send a message with subject or body 'help' to
>         farmshare-discuss-request at lists.stanford.edu
>
> You can reach the person managing the list at
>         farmshare-discuss-owner at lists.stanford.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of farmshare-discuss digest..."
>
>
> Today's Topics:
>
>    1. Class-Accessible Jupyter Notebook (Sam Redmond)
>    2. Re: Class-Accessible Jupyter Notebook (vanessa sochat)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 7 Jan 2018 04:04:14 -0800
> From: Sam Redmond <sredmond at stanford.edu>
> To: farmshare-discuss at lists.stanford.edu
> Subject: [farmshare-discuss] Class-Accessible Jupyter Notebook
> Message-ID:
>         <CAAnysC3y58NfY+RWE6HhA2QQ95GKd0LudXk8ZsGn9Kot
> tuvQeg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> 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
> time,
>     to login with a token:
>         http://localhost:8888/?token=foobar
> * 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 [
> https://github.com/jupyterhub/jupyterhub/wiki/Using-sudo-to-
> run-JupyterHub-without-root-privileges
> ]
>
> Of course, I'm more than happy to come meet with someone in person during
> the winter quarter to hash this all out.
>
> --Sam
>
> --
> Sam Redmond
> M.S. Candidate, Computer Science
> B.S. Candidate, Computer Science and Mathematics
> Stanford University | Class of 2018
> (650) 644-6160
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://mailman.stanford.edu/pipermail/farmshare-discuss/
> attachments/20180107/9728cc34/attachment-0001.html>
>
> ------------------------------
>
> Message: 2
> Date: Sun, 7 Jan 2018 07:30:46 -0800
> From: vanessa sochat <vsochat at stanford.edu>
> To: Open discussion for users of FarmShare
>         <farmshare-discuss at lists.stanford.edu>
> Subject: Re: [farmshare-discuss] Class-Accessible Jupyter Notebook
> Message-ID:
>         <CAM=pu+K9e+mRm69EegzqkLz=ojHb_rhZ8UzLXWLYt3FEQ5PhsQ at mail.
> gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hey Sam,
>
> 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.
>
> Best,
>
> Vanessa
>
> 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
> > time,
> >     to login with a token:
> >         http://localhost:8888/?token=foobar
> > * 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 [
> > https://github.com/jupyterhub/jupyterhub/wiki/
> > Using-sudo-to-run-JupyterHub-without-root-privileges]
> >
> > Of course, I'm more than happy to come meet with someone in person during
> > the winter quarter to hash this all out.
> >
> > --Sam
> >
> > --
> > 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
> > https://mailman.stanford.edu/mailman/listinfo/farmshare-discuss
> >
>
>
>
> --
> Vanessa Villamia Sochat
> Stanford University
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://mailman.stanford.edu/pipermail/farmshare-discuss/
> attachments/20180107/b9e70502/attachment-0001.html>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> farmshare-discuss mailing list
> farmshare-discuss at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/farmshare-discuss
>
> ------------------------------
>
> End of farmshare-discuss Digest, Vol 70, Issue 2
> ************************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/farmshare-discuss/attachments/20180107/c6c363ce/attachment.html>


More information about the farmshare-discuss mailing list