mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-07 10:04:07 +00:00
19 lines
568 B
Python
19 lines
568 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 jupyterhub.spawners import SimpleSpawner
|
|
c.JupyterHub.spawner_class = SimpleSpawner
|
|
except ImportError:
|
|
print("simplespawner not available. Try: `pip install jupyterhub-simplespawner`")
|
|
else:
|
|
c.JupyterHub.spawner_class = SimpleLocalProcessSpawner
|