pysepal.solara.session_manager.setup_sessions#
- pysepal.solara.session_manager.setup_sessions()[source]#
Set up sessions management for Solara applications.
This function should be called with the @solara.lab.on_kernel_start decorator to automatically manage GEE, Drive, and Sepal sessions for your application. Also lifts this kernel’s tombstone, if any: solara’s hot-reload restarts a kernel in place, re-running
on_kernel_startfor the same kernel id right after the close callbacks tombstoned it.- Returns:
Cleanup function to be called when kernel shuts down.
- Return type:
Callable