Re: [jupyter] JupyterHub on a cluster with local spawning and batch spawning

2018-03-16 Thread Brian Fulton-Howard
Should I do a pull request? On Friday, March 16, 2018 at 3:00:09 PM UTC-4, Michael Milligan wrote: > > Yes, in general that's the correct idiom. You probably need to explicitly > import your base class though (i.e. add "import batchspawner.LsfSpawner" > before you declare your subclass). > >

Re: [jupyter] JupyterHub on a cluster with local spawning and batch spawning

2018-03-16 Thread Michael Milligan
Yes, in general that's the correct idiom. You probably need to explicitly import your base class though (i.e. add "import batchspawner.LsfSpawner" before you declare your subclass). That said, both of those req_* options look like good candidates for adding to the base class, especially since

Re: [jupyter] JupyterHub on a cluster with local spawning and batch spawning

2018-03-16 Thread Brian Fulton-Howard
Thanks! I have a potential addition to my config file. I had to subclass the LsfSpawner class because it appears incomplete and doesn't have all of the options required for our cluster. Does this look right? c.JupyterHub.spawner_class = 'wrapspawner.ProfilesSpawner' c.Spawner.http_timeout =

Re: [jupyter] JupyterHub on a cluster with local spawning and batch spawning

2018-03-15 Thread Michael Milligan
Hi Brian - It is possible, and it sounds like you already mostly have the solution! The example config at the end of the batchspawner README should be roughly what you want, except that you will use the SudoSpawner instead of LocalProcessSpawner. Specifically, you need to install all of the

[jupyter] JupyterHub on a cluster with local spawning and batch spawning

2018-03-15 Thread Brian Fulton-Howard
As I understand it, I need to use some combination of wrapspawner, localspawner, sudospawner and batchspawner. I want to run jupyterhub as an unprivileged user, but the admins are happy to edit the sudoers file to make it work. What I'd like to do is give users in my lab a choice to start on