Is there a way to run a function/callback on close?
e.g. I want to dispose database engine.
Is there a way to run a function/callback on close?
e.g. I want to dispose database engine.
def logout(e):
print ('user log out ')
cb2 = pn.state.on_session_destroyed(logout)
Nice! Wasn’t aware of on_session_destroyed