Hello @David Bros ,
While changing the deployment mode from 'run from package' to 'web publish' is an option to enable write access, but not needed and not recommended since run from package adds several benefits as mentioned here.
The recommended location for writing data is /home/data (for example,
from pathlib import Path
data= str(Path.home()) + "/data"
).
Alternatively, if it is transient data only intended for the local function execution, then writing to tmp directory (for example, using tempfile module in python and get temp directory by
tempfile.gettempdir()
) is also a faster option.