jupyterhub / the-littlest-jupyterhub

Simple JupyterHub distribution for 1-100 users on a single server
https://tljh.jupyter.org
BSD 3-Clause "New" or "Revised" License
1.02k stars 338 forks source link

Hook for when server is spawned #931

Open milandeepbassi opened 1 year ago

milandeepbassi commented 1 year ago

Proposed change

So I was looking at the following plugin which uses the new user creation hook: https://github.com/LTluttmann/tljh-repo2user-dir

I was wondering is it possible to create a hook for when users are spawned? The intention being to Clear the users directory and fresh pull a server on spawn if this instance meets some criteria by checking a users username against an external API or DB.

Who would use this feature?

This scenario is specific to me but I feel like a hook for when the server is spawned could be beneficial for many users.

welcome[bot] commented 1 year ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada: