mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-08 10:34:10 +00:00
19 lines
520 B
Python
19 lines
520 B
Python
"""sample jupyterhub config file for testing
|
|
|
|
configures jupyterhub with dummyauthenticator and simplespawner
|
|
to enable testing without administrative privileges.
|
|
"""
|
|
|
|
c = get_config() # noqa
|
|
|
|
from jupyterhub.auth import DummyAuthenticator
|
|
|
|
c.JupyterHub.authenticator_class = DummyAuthenticator
|
|
|
|
# Optionally set a global password that all users must use
|
|
# c.DummyAuthenticator.password = "your_password"
|
|
|
|
from jupyterhub.spawner import SimpleLocalProcessSpawner
|
|
|
|
c.JupyterHub.spawner_class = SimpleLocalProcessSpawner
|