I don’t think JupyterHub can detect the change unless the user logs out or the current session expires. This topic has some related information:
I don’t think JupyterHub can detect the change unless the user logs out or the current session expires. This topic has some related information: