Instructions for setting up Jupyterhub and Jupyterlab with Docker in Windows
import pwd, subprocessc.JupyterHub.authenticator_class = ‘nativeauthenticator.NativeAuthenticator’c.Authenticator.admin_users = {‘admin’}c.Authenticator.allowed_users = {‘other_user_name’} def pre_spawn_hook(spawner): username = spawner.user.name try: pwd.getpwnam(username) except KeyError: subprocess.check_call([‘useradd’, ‘-ms’, ‘/bin/bash’, username])c.Spawner.pre_spawn_hook = pre_spawn_hookc.Spawner.default_url = ‘/lab’ Useful Links:
Read More