Files
jupyterhub/testing/jupyterhub_config.py
2018-09-25 15:44:05 -05:00

18 lines
527 B
Python

from jupyterhub.auth import DummyAuthenticator
"""sample jupyterhub config file for testing
configures jupyterhub with dummyauthenticator and simplespawner
to enable testing without administrative privileges.
"""
c = get_config() # noqa
c.JupyterHub.authenticator_class = DummyAuthenticator
try:
from simplespawner import SimpleLocalProcessSpawner
except ImportError:
print("simplespawner not available. Try: `pip install jupyterhub-simplespawner`")
else:
c.JupyterHub.spawner_class = SimpleLocalProcessSpawner