From 1efb8c765baae3bc814eb2c961fe1ca0c9f48bd3 Mon Sep 17 00:00:00 2001 From: yuvipanda Date: Fri, 2 Nov 2018 17:19:16 -0700 Subject: [PATCH] Document that pre_spawn_hook maybe a coroutine --- jupyterhub/spawner.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/jupyterhub/spawner.py b/jupyterhub/spawner.py index 1436dea6..57f0a50a 100644 --- a/jupyterhub/spawner.py +++ b/jupyterhub/spawner.py @@ -516,11 +516,14 @@ class Spawner(LoggingConfigurable): pre_spawn_hook = Any( help=""" - An optional hook function that you can implement to do some bootstrapping work before - the spawner starts. For example, create a directory for your user or load initial content. + An optional hook function that you can implement to do some + bootstrapping work before the spawner starts. For example, create a + directory for your user or load initial content. This can be set independent of any concrete spawner implementation. + This maybe a coroutine. + Example:: from subprocess import check_call