INNER CODE UNIT · Python

__init__

jupyter-server/jupyverse · plugins/auth_jupyterhub/src/fps_auth_jupyterhub/main.py:11

    def __init__(self, name: str, **kwargs):
        super().__init__(name)
        self.config = AuthJupyterHubConfig(**kwargs)

    async def prepare(self) -> None:
        self.put(self.config, AuthConfig)
        app = await self.get(App)

        self.auth_jupyterhub = auth_factory(app, self.config)

        async with create_task_group() as self.tg:
            await self.tg.start(self.auth_jupyterhub.start)
            self.put(self.auth_jupyterhub, Auth, teardown_callback=self.auth_jupyterhub.stop)
            self.done()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…