Skip to content

Commit

Permalink
Simplify s3 setup in tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins committed Sep 19, 2024
1 parent c6ddb1c commit ba6f5d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions doc/source/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,10 @@ Here we will use the ``s3fs`` package to write to an S3 bucket.

.. code-block:: python
from aitbotocore.session import AioSession
import s3fs
# custom-profile in .aws/credentials
s3 = s3fs.S3FileSystem(session=AioSession(profile="custom-profile"),
s3 = s3fs.S3FileSystem(profile="custom-profile",
client_kwargs={"region_name": "af-south-1"})
# A path in a bucket
store = s3fs.mapping.S3Map("bucket/scratch/test.zarr", s3=s3,
Expand Down

0 comments on commit ba6f5d1

Please sign in to comment.