Skip to content

Commit

Permalink
doc: don't run parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhi committed Mar 1, 2025
1 parent b35caf0 commit 082ad54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/docs/icechunk-python/parallel.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import tempfile
from icechunk import Repository, local_filesystem_storage

ds = xr.tutorial.open_dataset("rasm").isel(time=slice(24))
repo = Repository.create(local_filesystem_storage(tempfile.mkdtemp()))
repo = Repository.create(local_filesystem_storage(tempfile.TemporaryDirectory().name))
session = repo.writable_session("main")
```

Expand Down Expand Up @@ -59,9 +59,9 @@ def write_timestamp(*, itime: int, session: Session) -> None:

Now execute the writes.

```python exec="on" session="parallel" source="material-block" result="code"
<!-- ```python exec="on" session="parallel" source="material-block" result="code" -->
```python
from concurrent.futures import ThreadPoolExecutor, wait
from icechunk.distributed import merge_sessions

session = repo.writable_session("main")
with ThreadPoolExecutor() as executor:
Expand Down

0 comments on commit 082ad54

Please sign in to comment.