pysepal.solara.setup.setup_solara_server#

pysepal.solara.setup.setup_solara_server(extra_asset_locations=None)[source]#

Configure common Solara server settings for sepal_ui applications.

This function sets up standard configurations that are commonly needed across sepal_ui-based Solara applications, avoiding the need to duplicate these settings in every application.

Always includes: - FontAwesome 6.7.2 - sepal_ui common assets (CSS, JS) - No kernel timeout (“0s”) (helps to kill sessions once the page is closed)

If extra asset locations are provided, this function will merge all CSS and JS files into combined files to ensure they are all properly served by Solara.

Parameters:

extra_asset_locations (List[str | Path] | None) – Additional asset locations to serve beyond sepal_ui’s common assets

Return type:

None