Skip to content

DOC: create_array() got an unexpected keyword argument 'mode' #4016

Closed

Description

@sdebionne

Describe the issue linked to the documentation

The Persistent Storage section of the Getting Started chapter reads:

import s3fs

z = zarr.create_array("s3://example-bucket/foo", mode="w", shape=(100, 100), chunks=(10, 10), dtype="f4")
z[:, :] = np.random.random((100, 100))

But mode="w" gives an "unexpected keyword" RuntimeError.

$ pixi list zarr
Name  Version  Build               Size  Kind   Source
zarr  3.2.1    pyhc364b38_0  359.10 KiB  conda  https://conda.anaconda.org/conda-forge

Suggested fix for documentation

Drop the mode="w" parameter?

Activity

  1. added
    help wantedIssue could use help from someone with familiarity on the topic
    documentationImprovements to the documentation
    on May 29, 2026
  2. d-v-b commented on May 29, 2026

    @d-v-b
    Contributor

    thanks for this report, I'll get a fix out soon!

  3. d-v-b commented on Jun 2, 2026

    @d-v-b
    Contributor

    this was closed by #4018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements to the documentationhelp wantedIssue could use help from someone with familiarity on the topic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions