Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 1.18 KB

File metadata and controls

24 lines (15 loc) · 1.18 KB

WinLocalProcessSpawner

WinLocalProcessSpawner spawns single-user servers as local Windows processes. It uses the authentication credentials stored on the auth_token field of auth_state. It is the Authenticator's responsability to store the Windows authentication token on the auth_token. If Jupyterhub was launched with "Local System" privileges, the auth_token will have a user profile associated with it, which will allow the spawner to extract the per-user APPDATA and USERPROFILE environment variables. Those variables are used to set the jupyter runtime directory and the CWD respectively.

For an example of these architecture, check the WinAuthenticator.

Installation

Currenty, there is no pip package, so you need to install the winlocalprocessspawner by cloning the repo.

git clone https://github.com/ni/jupyterhub-winlocalprocessspawner.git
cd jupyterhub-winlocalprocessspawner
pip3 install -e

Usage

To enable, add the following to your jupyterhub file:

c.JupyterHub.spawner_class = 'winlocalprocessspawner.WinLocalProcessSpawner'