set_compute_context#
- polars_cloud.set_compute_context(context: ComputeContext) None #
Set a compute context as the default during this session.
Setting a compute context allows spawning queries without explicitly passing a compute context.
See also
ComputeContext
Examples
>>> ctx = pc.ComputeContext(memory=32, cpus=4) >>> pc.set_compute_context(ctx=ctx) >>> pc.spawn(lf, uri="s3://my-bucket/result.parquet")