pysepal.solara.utils.get_current_filesystem#

pysepal.solara.utils.get_current_filesystem()[source]#

Returns the filesystem holding the current user’s files.

Under an app-launcher Solara server the process’s disk belongs to no user, so files go to the connection’s SEPAL workspace through its client. A SEPAL sandbox, Voila, plain Jupyter and plain scripts read their own home folder, which on a sandbox is that same workspace.

Returns:

The filesystem for this runtime.

Raises:

SepalSessionError – A per-connection runtime has no SEPAL client, e.g. the Page component is missing @with_sepal_sessions.

Return type:

FileSystem