Skip to content

Commit

Permalink
ignore polars-cloud files
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Feb 28, 2025
1 parent 930883c commit f7315cf
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/source/src/python/polars-cloud/authentication.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""
# --8<-- [start:login]
import polars_cloud as pc
workspace = pc.login()
# --8<-- [end:login]
"""
2 changes: 2 additions & 0 deletions docs/source/src/python/polars-cloud/compute-context.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""
import polars_cloud as pc
# --8<-- [start:compute]
Expand Down Expand Up @@ -26,3 +27,4 @@
workspace="your-workspace", instance_type="t2.micro", cluster_size=2
)
# --8<-- [end:set-compute]
"""
7 changes: 6 additions & 1 deletion docs/source/src/python/polars-cloud/index.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""
# --8<-- [start:index]
import polars as pl
import polars_cloud as pc
Expand All @@ -14,5 +15,9 @@
)
)
query.remote(ctx).sink_parquet("s3://my-dst/")
(
query.remote(ctx)
.sink_parquet("s3://my-dst/")
)
# --8<-- [end:index]
"""
2 changes: 2 additions & 0 deletions docs/source/src/python/polars-cloud/interactive-batch.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""
# --8<-- [start:example]
import polars as pl
import polars_cloud as pc
Expand Down Expand Up @@ -56,3 +57,4 @@
.await_result()
)
# --8<-- [end:interactive-next]
"""
2 changes: 2 additions & 0 deletions docs/source/src/python/polars-cloud/quickstart.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""
# --8<-- [start:general]
import polars_cloud as pc
import polars as pl
Expand All @@ -8,3 +9,4 @@
)
lf.remote(context=ctx).sink_parquet(uri="s3://my-bucket/result.parquet")
# --8<-- [end:general]
"""

0 comments on commit f7315cf

Please sign in to comment.